uno icon indicating copy to clipboard operation
uno copied to clipboard

Investigate Padding interaction with borders and border backgrounds

Open ramezgerges opened this issue 1 year ago • 3 comments

Current behavior

Currently, the padding on an IBorderInfoProvider is not used to calculate the numbers for the border shape and the border background. A quick attempt found some differences between WinUI and Uno (at least skia) when Padding is added. This should be investigated after https://github.com/unoplatform/uno/pull/16562 merges

Expected behavior

No response

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

No response

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 May 13 '24 10:05 ramezgerges

This also should take BackgroundSizing property into account

MartinZikmund avatar May 13 '24 11:05 MartinZikmund

I thought padding is only considered during measure/arrange and shouldn't have any impact elsewhere 😕

Youssef1313 avatar May 13 '24 19:05 Youssef1313

@ramezgerges Can you extend the issue for exact scenario that's currently broken?

Youssef1313 avatar May 17 '24 14:05 Youssef1313

The BorderVisualClipping sample used to do some weird stuff if you added a Padding to the elements, but I'm testing it now and it seems to be... fine? I will close for now until I find an actual problem. image

ramezgerges avatar May 20 '24 14:05 ramezgerges