Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date/TimePicker popup gets truncated on small screens with overlay popups #7815

Closed
grokys opened this issue Mar 16, 2022 · 1 comment · Fixed by #7832
Closed

Date/TimePicker popup gets truncated on small screens with overlay popups #7815

grokys opened this issue Mar 16, 2022 · 1 comment · Fixed by #7832
Labels

Comments

@grokys
Copy link
Member

grokys commented Mar 16, 2022

Describe the bug

When running with OverlayPopups = true on a small screen (such as a small embedded device) the DatePicker/TimePicker popup gets truncated:

To Reproduce

Steps to reproduce the behavior:

  1. In ControlCatalog.NetCore, Program.cs, enable OverlayPopups = true in the Win32PlatformOptions
  2. Run the program and resize the window to its minimum size
  3. Open a DatePicker

Expected behavior

The date/time picker popup should be truncated to the available size.

Screenshots

image

Desktop (please complete the following information):

  • OS: All
  • Version: master
@grokys grokys added the bug label Mar 16, 2022
@grokys
Copy link
Member Author

grokys commented Mar 16, 2022

The problem appears to be that OverlayLayer inherits the measure behavior from Canvas, which measures all children with infinity size. We should probably measure its children using the passed availableSize instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant