Form with only width constraint changes height to zero after minimize/restore
Original Reporter info from Mantis: cobines
-
Reporter name:
Original Reporter info from Mantis: cobines
- Reporter name:
Description:
If a form has Constraint.MinWidth set but MinHeight is 0 (so, no constraint) then after minimize/restore width is set to MinWidth and height is set to 0.
This stems from the fact that in LCLWin32 minimized form has Width,Height=0. Without constraints the size is somehow remembered upon restore but with MinWidth>0 on minimize the size is set to Width=MinWidth, Height=0. And upon restore those values are used to resize the form thus only the caption bar is visible.
This obviously works in other ways too (MinHeight > 0, MinWidth = 0).
I checked with Linux LCLGTK2, LCLQT and it works fine.
Steps to reproduce:
- Run attached application.
- Minimize Test Form.
- Restore Test Form.
Mantis conversion info:
- Mantis ID: 19886
- OS: Windows XP
- OS Build: SP3
- Build: 31861
- Platform: Win32
- Version: 0.9.31 (SVN)
- Fixed in revision: r33145 (#2cd66811)
- Target version: 0.99.0