High DPI: form scaled to 4 times of MinWidth, MinHeight
Original Reporter info from Mantis: baldzhang @baldzhang
-
Reporter name: bald zhang
Original Reporter info from Mantis: baldzhang @baldzhang
- Reporter name: bald zhang
Description:
reference to #31276 (closed): migration an exist project to 1.7
form's Constraints MinWidth/MinHeight is 300/200, while Width/Height is 300/200 also.
when running on 4k(192dpi), the form is scaled two times(1200x800) instead of once(should 600x400)
tracking info:
in TCustomForm.DoAutoAdjustLayout
a) Constraints.AutoAdjustLayout(...) scaled MinWidth/MinHeight and set the form double sized
b) then SetBounds(...) scale the form again
Mantis conversion info:
- Mantis ID: 31336
- OS: windows
- OS Build: 10
- Build: trunk
- Platform: win32
- Version: 1.7 (SVN)
- Fixed in revision: 54353 (#4ba349fd)