Fix several bugs relating to ToolStrips with Flow layout
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 19 Mar 2012 03:20:01 +0000 (03:20 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 19 Mar 2012 03:46:19 +0000 (03:46 +0000)
commitfbe0f6acc4be7361316a7f72352929f912c69ffd
treea9bfdea4007a46bfa6999a9fb3fc318d69d6cdc2
parentc64a76e3aae1bd6347f35c1c3bd1ace56247d4f1
Fix several bugs relating to ToolStrips with Flow layout

Specifically:
  - Do not take into account unavailable ToolStripItems.
  - Use preferred size of ToolStripItems instead of current size.
  - Take into account the ToolStrip's padding.
  - Do not fill the ToolStrip height during layout, which is wrong
    for multi-row ToolStrips.  This reverts commit f124ea39, which
    fixed Novell bug #469196.  As an alternative fix for that issue,
    set ToolStripSeparator's Dock to Fill in its constructor.
mcs/class/Managed.Windows.Forms/System.Windows.Forms.Layout/FlowLayout.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStrip.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripSeparator.cs