[Windows] Content of Grid
placed inside ScrollView
is partially visible
#17870
Labels
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
platform/windows 🪟
t/bug
Something isn't working
Description
The linked code creates view with the following aggregation order:
Frame
,Grid
,ScrollView
,AdaptableGrid
.Inside an object of the class
AdaptableGrid
a matrix of 10 columns and 10 rows is created. Inside each cell objects of the classContentViewItem
are placed.The
AdaptableGrid
class sets the same size to its children in the methodOnSizeAllocated
. At the end of this method, theInvalidateMeasure
method is called usingDispatcher
:Dispatcher.Dispatch(InvalidateMeasure)
.The class
ContentViewItem
extends theContentView
class and sets an object of theLabel
class to theContent
property.Below is the code of the method
Populate
, which creates the mentioned matrix:On Windows the created matrix is only partially visible – two last columns are hidden:
The scroll bars are invisible since there is a lot of space and this is a proper behavior.
On Android the linked code works correctly.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/jns300/Bugs/tree/main/GridAndScrollViewPresentationIssue
Version with bug
7.0.92
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows
Affected platform versions
Windows 11
Did you find any workaround?
If the
Grid
object is not placed inside theScrollView
object then theGrid
's children are presented correctly.Relevant log output
No response
The text was updated successfully, but these errors were encountered: