Closed Keflon closed 1 year ago
No workaround found yet.
Grid
cells dodges the problem where cells are too big. Bugfix:
Label
in the foreground with InputTransparent=True
yet it consumed input and prevented the ScrollView
from scrolling.I have minimised the label size in the repo so it doesn't get in the way.
Updates to scenario 2 after point 2 was applied:
- Windows: [BUG] The Grid is 50/50, the Button is 500 in height, but the ScrollView is not scrollable.
The ScrollView is scrollable.
All other bugs are as described above.
Can you split these bugs into separate issues with separate solutions? I appreciate what you wrote, but it's hard for me to understand your exact problem by going back and looking at these drawings pointing to things. Likewise, having one "uber" bug makes it harder to fix and close.
Apologies, I can see this report is messy. I was in a rush and whilst writing the minimum repo I ran into the Rectangle and Button behaving differently, and then InputTransparent not working on all platforms.
The bug I was trying to report is simply this:
Unless you tell me that clears things up I'll create the following bugs reports, each with separate repos:
Please note there are probably more symptoms of the underlying bug, e.g. I've got grid-cells resizing themselves vertically on WinUI when the Window is resized horizontally. I just don't have time to write up everything I run into. Wish I did.
Before I write these up, can you let me know if that's what you're asking for, and perhaps save me some time if you're aware of these problems already being reported?
Please feel free to close this bug once you have replied.
I have written up 4 bugs to replace this bug.
@drasticactions I'm closing this bug because it is covered by the other 4.
Description
Grid
withRowDefinitions="*,*"
where each grid cell contains aScrollView
...Scenario 1:
Grid
cells are 50/50 and theRectangle
can be scrolled within theScrollView
. (Pixel 5, Emulator)Grid
cells expand to fit theRectangle
, i.e. they are too big. (iPhone SE, simulator)Grid
cells appear to be the correct height but theRectangles
are minimal height.Image 1.1
Image 1.2
Image 1.3
Scenario 2:
Image 2.1
Image 2.2
Image 2.3
EDIT: The ScrollBars are present and work correctly. See the comment after this post.
Steps to Reproduce
File->New MAUI app. Replace the root object in MainPage.xaml with one or the other
Grid
shown below ...Scenario 1:
Grid
cells are 50/50 and theRectangle
can be scrolled within theScrollView
. (Pixel 5, Emulator)Grid
cells expand to fit theRectangle
, i.e. they are too big. (iPhone SE, simulator)Grid
cells appear to be the correct height but theRectangles
are minimal height.Scenario 2:
Link to public reproduction project repository
https://github.com/Keflon/MauiGridBug
Version with bug
7.0 (current)
Last version that worked well
6.0.312
Affected platforms
iOS, Android, Windows, I was not able test on other platforms
Affected platform versions
Latest.
Did you find any workaround?
No workaround found yet.
The problem is new, but I didn't notice which update caused it. It was a recent update.
The disappearing text (when
InputTransparent="True"
) for Android is visible ifIsVisible
is initially true, i.e. not databound to a bool that starts false.There are many other 'quirks' to the layout, some of which may be symptoms of the same underlying problem. These caused some difficulty providing a succinct demo project.
Maybe this is a clue? ...
The problem that led me here is a
WinUI
problem where it appears resizing the width of the Window causes a layout pass that sorts out some grid-related layout issues I was having, at the cost of causing other issues. I'm being vague because I'm not certain whether the problem lies with me; if not, I'll raise a bug if I don't find an existing one.The problems all centre around a custom-control that contains a ScrollView.
Relevant log output
No response