mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-16 17:10:20 -10:00
2009-02-04 Jonathan Pobst <[email protected]>
* FlowLayout.cs: When laying out ToolStripItems, they should be the height of the ToolStrip, not their preferred height. [Fixes bug #469196] svn path=/trunk/mcs/; revision=125770
This commit is contained in:
1 parent
04aa4b3d4c
commit
f124ea39ba
2 files changed
+13
-3
No files matched your search
@@ -1,3 +1,9 @@
|
||||
2009-02-04 Jonathan Pobst <[email protected]>
|
||||
|
||||
* FlowLayout.cs: When laying out ToolStripItems, they should be
|
||||
the height of the ToolStrip, not their preferred height.
|
||||
[Fixes bug #469196]
|
||||
|
||||
2008-11-07 Jonathan Pobst <[email protected]>
|
||||
|
||||
* DefaultLayout.cs: Apply patch from Jonathan Anderson that keeps
|
||||
|
||||
@@ -358,9 +358,13 @@ namespace System.Windows.Forms.Layout
|
||||
// Only apply layout to visible controls.
|
||||
if (!c.Available) { continue; }
|
||||
|
||||
// Resize any AutoSize controls to their preferred size
|
||||
if (c.AutoSize == true)
|
||||
c.SetBounds (new Rectangle (c.Location, c.GetPreferredSize (c.Size)));
|
||||
// Resize any AutoSize controls to their preferred width
|
||||
// (the height should fill the ToolStrip)
|
||||
if (c.AutoSize == true) {
|
||||
Size preferred_size = c.GetPreferredSize (c.Size);
|
||||
preferred_size.Height = parentDisplayRectangle.Height;
|
||||
c.SetBounds (new Rectangle (c.Location, preferred_size));
|
||||
}
|
||||
|
||||
switch (settings.FlowDirection) {
|
||||
case FlowDirection.BottomUp:
|
||||
|
||||
Reference in new issue
Block a user