DoAlignChildControls does not keep design-time order when some items are hidden in design-time
Original Reporter info from Mantis: Alexsander
-
Reporter name:
Original Reporter info from Mantis: Alexsander
- Reporter name:
Description:
When a group of widgets with the same Align are arranged in design-time, it's expected the order is kept in run-time. However, if some of the items are hidden (Visible = true but off screen) the design order is not kept.
Steps to reproduce:
New Project:
- Insert Panel1 with Align = Top
- Insert Panel2 with Align = Client
- Insert a Panel3 inside Panel2 with Align = Right
- Insert 6 buttons in Panel3, all with Align = Top
- Sort the buttons from Button1 to Button6
- Set Panel3 with AutoSize = true
- Resize Panel1 to hide Buttons 4-6 visible (with Button3 partially visible)
- In Form's OnShow set Panel1.Visible := false
RUN
Mantis conversion info:
- Mantis ID: 25514
- Version: 1.0.14