File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
SamplesApp/SamplesApp.UITests/Windows_UI_Xaml/UIElementTests Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ public class UIElementTests : SampleControlUITestBase
16
16
// TODO: convert this to RuntimeTests https://github.com/unoplatform/uno/issues/2114#issuecomment-555209397
17
17
[ Test ]
18
18
[ AutoRetry ]
19
- [ ActivePlatforms ( Platform . Browser ) ]
20
19
public void When_TransformToVisual_Transform ( )
21
20
{
22
21
Run ( "UITests.Shared.Windows_UI_Xaml.UIElementTests.TransformToVisual_Transform" , skipInitialScreenshot : false ) ;
@@ -27,7 +26,6 @@ public void When_TransformToVisual_Transform()
27
26
// TODO: convert this to RuntimeTests https://github.com/unoplatform/uno/issues/2114#issuecomment-555209397
28
27
[ Test ]
29
28
[ AutoRetry ]
30
- [ ActivePlatforms ( Platform . Browser ) ]
31
29
public void When_TransformToVisual_ScrollViewer ( )
32
30
{
33
31
Run ( "UITests.Shared.Windows_UI_Xaml.UIElementTests.TransformToVisual_ScrollViewer" , skipInitialScreenshot : false ) ;
Original file line number Diff line number Diff line change @@ -166,12 +166,14 @@ private bool TryGetParentUIElementForTransformToVisual(out UIElement parentEleme
166
166
// We found a UIElement in the parent hierarchy, we compute the X/Y offset between the
167
167
// first parent 'view' and this 'elt', and return it.
168
168
169
- if ( view is UICollectionView )
169
+ if ( view is UICollectionView || view is NativeScrollContentPresenter )
170
170
{
171
171
// The UICollectionView (ListView) will include the scroll offset when converting point to coordinates
172
172
// space of the parent, but the same scroll offset will be applied by the parent ScrollViewer.
173
173
// So as it's not expected to have any transform/margins/etc., we compute offset directly from its parent.
174
174
175
+ // The same logic applies to NativeScrollContentPresenter, since the ScrollViewer offsets will be explicitly taken into account.
176
+
175
177
view = view . Superview ;
176
178
}
177
179
You can’t perform that action at this time.
0 commit comments