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

ItemsRepeater doesn't show items after maximizing window #17

Open
DmitriyYukhanov opened this issue Nov 20, 2022 · 3 comments
Open

ItemsRepeater doesn't show items after maximizing window #17

DmitriyYukhanov opened this issue Nov 20, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@DmitriyYukhanov
Copy link

Describe the bug
When I have some items collection rendered using ItemsRepeater nested in ScrollView, and it's not visible due to being too low in the ScrollView, it does not render items after becoming visible when maximizing window.

If I do resize the window using window side handler, it does show up as expected.

To Reproduce

  1. Run the attached repro project:
    Report.zip
  2. Maximize window.
  3. See no white rectangles appear at the bottom of the screen.
  4. Now restore window and maximize it again.
  5. See items are visible now.

Expected behavior
I expect to see items right away after first window maximize.

Screenshots
Reproduction video:
https://user-images.githubusercontent.com/883587/202908113-89d0327c-1334-4bf7-b85f-9ea19d2807b9.mp4

Desktop (please complete the following information):

  • OS: Win 11 22H2
  • Version 11.0.0-preview.4

Additional context
I'm using 125% UI scaling and 2K display.

@DmitriyYukhanov DmitriyYukhanov added the bug Something isn't working label Nov 20, 2022
@DmitriyYukhanov
Copy link
Author

Workaround is to specify MinItemWidth and MinItemHeight:

replace line
<UniformGridLayout ItemsJustification="SpaceEvenly"/>
with
<UniformGridLayout ItemsJustification="SpaceEvenly" MinItemWidth="500" MinItemHeight="500"/>
at MainWindow.axml to see items doesn't disappear anymore after maximizing the window.

@timunie
Copy link

timunie commented Nov 21, 2022

I can reproduce the issue, but I don't have a solution yet for you.

@DmitriyYukhanov
Copy link
Author

Thanks for looking into this @timunie!
No worries, I'm happy to stick with MinItemWidth \ MinItemHeight workaround for now 😌

@maxkatz6 maxkatz6 transferred this issue from AvaloniaUI/Avalonia Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants