Constraints.MinWidth ignored for client-aligned controls when parent changes size
Original Reporter info from Mantis: wp @wpam
-
Reporter name:
Original Reporter info from Mantis: wp @wpam
- Reporter name:
Description:
The attached demo project contains three panels and two splitters:
- Panel1 and Splitter1: left-aligned
- Panel2: client-aligned.
- Panel3 and Splitter2: right-aligned
All panels have Contraints.MinWidth set to 100. This means in my opinion that the width of each panel should never be less than 100.
The Constraints.MinWidth is respected when the splitters are moved:
- Move Splitter1 to the left -> the splitter stops when Panel1 has reached its MinWidth --> ok
- Move Splitter1 to the right -> the splitter stops when Panel2 has reached its MinWidth --> ok
- The same with Splitter2
But if you drag the width of the containing form you'll notice that the width of the center Panel2 can be reduced to become small than its MinWidth.
This behavior can become annoying in complex form layouts. I tested it with Windows7 and Ubuntu without seeing differences. There is a difference, though, to Delphi XE2 which behaves as expected.
Steps to reproduce:
See attached demo and above description