uno icon indicating copy to clipboard operation
uno copied to clipboard

[Linux] `Path` is not clipping inside a ScrollViewer.

Open ramezgerges opened this issue 4 months ago • 2 comments

Current behavior

In the repro below, scrolling the scrollviewer will make the Path inside remain visible even though it should be partially clipped. The shocking part is that this only happens on Linux. The WPF target on Windows clips accurately. Note that the repro seems to be very stable. I've tried a bunch of variations and they all repro 100% of the time.

The problem was originally discovered in SamplesApp (notice the unclipped chevron): image

Expected behavior

The Path should only be visible within the viewport of the ScrollViewer.

How to reproduce it (as minimally and precisely as possible)

	<StackPanel>
		<Border Height="100" HorizontalAlignment="Stretch" Background="Blue" />
		<ScrollViewer Height="30">
			<StackPanel>
				<Path Data="m 0,0 c -0.639,0 -1.276,0.243 -1.765,0.729 -0.977,0.974 -0.98,2.557 -0.006,3.535 L 16.925,23.032 -1.768,41.725 c -0.976,0.976 -0.976,2.559 0,3.535 0.977,0.976 2.559,0.976 3.536,0 L 22.225,24.803 c 0.975,-0.975 0.976,-2.555 0.004,-3.532 L 1.771,0.736 C 1.283,0.245 0.642,0 0,0" Fill="Red" />
			</StackPanel>
		</ScrollViewer>
	</StackPanel>

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

ramezgerges avatar Oct 15 '24 16:10 ramezgerges