TTimeEdit position issue at screen border and hour display issue
Original Reporter info from Mantis: wp @wpam
-
Reporter name:
Original Reporter info from Mantis: wp @wpam
- Reporter name:
Description:
This report covers two issues:
- the popup is not correctly positioned if the TTimeEdit is too close to the monitor bottom.
- the first row of the hour grid scrolls away if the selected time is in the second half of the day.
Steps to reproduce:
Run the attached demo. It contains a form with a TTimeEdit set to the time 15:00, the form is moved close to the bottom of the screen. When you open the popup of the TTimeEdit you'll notice that the first row of hours has disappeared (at least here on Windows 7), and that the popup opens from the screen buttom upwards and overlaps with the windows taskbar. It would be better if the bottom edge of the popup would be above the edit instead.
See screenshot "TTimeEdit-before.png"
The provided patch fixes the issue. Screenshot "TTimeEdit-after.png" is taken after applying the patch and shows the correct behavior.
The patch also takes care of the popup staying at its position if the layout is switched between simple and extended mode.