enhance: force InvalidateVisual

This commit is contained in:
leo 2024-08-13 14:57:05 +08:00
parent 70f2bda097
commit d601ca6b23
No known key found for this signature in database

View file

@ -191,9 +191,11 @@ namespace SourceGit.Views
requiredWidth += label.Width + 16 /* icon */ + 8 /* label margin */ + 4 /* item right margin */; requiredWidth += label.Width + 16 /* icon */ + 8 /* label margin */ + 4 /* item right margin */;
} }
InvalidateVisual();
return new Size(requiredWidth, 16); return new Size(requiredWidth, 16);
} }
InvalidateVisual();
return new Size(0, 0); return new Size(0, 0);
} }