-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange layout behavior when size not explicitly set #102
Comments
Not at all. This all looks bugged as hell if you ask me. Just a huge thanks for bringing this out, on it. Looks like it's centering along the whole canvas width instead of the parent layout width. And this wasn't showing in my apps where I had mostly parent layout HorizontalOptions = "Fill".. |
Yep same as here, but i didn't got the idea initially #94 Bugs inside |
Thanks so much! I have found the reason and locations where the bug is happening. Would say it's a design issue. I'm currently thinking how to overcome this without reworking totally the layout system haha.. |
So just a quick observation, maybe it can help you come up with a solution:
Then everything actually works correctly (at least in the example that was causing problems). |
Yeah that a quick cheat that works for this specific case and breaks other cases unfortunately :)) |
Got a fix ready, now need to check other types of layout other that column/row and ill push to repo and nuget :) |
Must be resolved with #105 |
I'm trying to understand if this is intended behavior with layout, so here's the code:
this results in the following:
The SkiaLayout (blue) seems to size itself correctly, but the children within are positioned out of bounds
However once I set the WidthRequest=100 on the layout it looks like this:
The horizontal positioning is now correct and the blue area is now 162px in size and if I set HeightRequest=162
It all fits correctly.
Is this intentional? Because it seems like the layout sizes itself correctly to fit the children, but does not take it's own size into account when positioning them.
The text was updated successfully, but these errors were encountered: