panels when we have auto size contents. Also we are only
updating
the contents of the panel, not the borders, so compensate for
the
border width (TODO: get this width from the theme somehow).
svn path=/trunk/mcs/; revision=61130
+2006-05-25 Jackson Harper <jackson@ximian.com>
+
+ * StatusBar.cs: We only need to update the sizes of the other
+ panels when we have auto size contents. Also we are only updating
+ the contents of the panel, not the borders, so compensate for the
+ border width (TODO: get this width from the theme somehow).
+
2006-05-25 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Application.cs: set the DialogResult to fixed when the main form is
internal void UpdatePanelContents (StatusBarPanel panel)
{
- if (panel.AutoSize == StatusBarPanelAutoSize.None){
- Invalidate (new Rectangle (panel.X, 0, panel.Width, bounds.Height), false);
- return;
- }
-
if (panel.AutoSize == StatusBarPanelAutoSize.Contents) {
- Update ();
+ Invalidate ();
return;
}
- Update ();
+ Invalidate (new Rectangle (panel.X + 2, 2, panel.Width - 4, bounds.Height - 4));
}
internal void Update ()