Skip to content

Conversation

arkus7
Copy link
Contributor

@arkus7 arkus7 commented Sep 13, 2025

Updated the width and height properties of DatePickerPopup and TimePickerPopup components to use dynamic sizing based on dialog dimensions instead of fixed pixel values.

Previously, the lack of width and height in TimePickerPopup caused inconsistent placement when displayed at a specific location:

  • DatePickerPopup was centered on the given (x, y)
  • TimePickerPopup used its top-left corner as the anchor point

Now both components consistently render centered at the specified (x, y).

Fixes #9262

Screenshots (before & after)

Before

TimePickerPopup

image

DatePickerPopup:

image

After

TimerPickerPopup

image

DatePickerPopup

image

Updated the `width` and `height` properties of `DatePickerPopup` and `TimePickerPopup` components to use dynamic sizing based on `dialog` dimensions instead of fixed pixel values.

Previously, the lack of `width` and `height` in `TimePickerPopup` caused inconsistent placement when displayed at a specific location:
- `DatePickerPopup` was centered on the given (x, y)
- `TimePickerPopup` used its top-left corner as the anchor point

Now both components consistently render centered at the specified (x, y).
@CLAassistant
Copy link

CLAassistant commented Sep 13, 2025

CLA assistant check
All committers have signed the CLA.

@ogoffart
Copy link
Member

Thanks a lot for the fix.

@ogoffart ogoffart merged commit d89f8cf into slint-ui:master Sep 15, 2025
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Std-widgets Time picker and Date picker popup placement is off
3 participants