unoplatform / uno.toolkit.ui

A set of custom controls for the WinUI and the Uno Platform not offered out of the box by WinUI, such as Card, TabBar, NavigationBar, etc.
https://platform.uno/
MIT License
83 stars 27 forks source link

AutoLayout + TextBlock responsivity issue #858

Open iurycarlos opened 1 year ago

iurycarlos commented 1 year ago

Current behavior

Besides it is a very specific scenario, I think it could lead to other different issues.

When an AutoLayout has a child with fixed dimensions and other child which doesn't, if we have a textblock inside the stretched, it will increase the conteiner's height more then needed if we change the width of the screen.

Best way to understand is to open the following link and to decrease the preview space, adjusting the divider.

https://playgroundcanary.z19.web.core.windows.net/#e37caf08

before: image

after: image

Expected behavior

It should generate the proper size when streched.

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)

Uno 5.0.0-dev.3200

Uno.Toolkit.WinUI.Material 5.0.0-dev.108

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

jeromelaban commented 1 year ago

@Robert-Louis I'm not sure about this issue, is it specific to the AutoLayout control?

iurycarlos commented 1 year ago

More testing:

In figma plugin we have:

image

And using playground (a little bit different since we can't reproduce exactly the same screen there):

https://playgroundcanary.z19.web.core.windows.net/#eec14f8f

Robert-Louis commented 1 year ago

It will be fixed by this pr

https://github.com/unoplatform/uno.toolkit.ui/pull/857