high dpi: controls not scaled properly when anchors is set and less than harf size, both horzontal and vertical
Original Reporter info from Mantis: baldzhang @baldzhang
-
Reporter name: bald zhang
Original Reporter info from Mantis: baldzhang @baldzhang
- Reporter name: bald zhang
Description:
with 4k display, DPI = 192, 200%.
a control is set with Anchors akBottom or akRight, when it's Width < Form.Widht /2 or Height < Form.Height / 2, it miss scaled.
BTW, Form's Left and Top not scaled also.
Steps to reproduce:
sample project attached.
proj16 for lazarus 1.6.4
proj18 for lazarus trunk
compile and run, then resize the form.
Mantis conversion info:
- Mantis ID: 31992
- OS: Windows
- OS Build: 10
- Build: trunk
- Platform: win32
- Version: 1.9 (SVN)
- Fixed in revision: 55537 (#0a2fe800)