Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Parent-based sizing (Pw and Ph) can be unstable #1517

@kkoreilly

Description

@kkoreilly

Describe the bug

When specifying sizing in terms of Pw or Ph (especially Pw), the size of the widget you are styling can often affect the size of the parent, leading to recursion or instability.

How to reproduce

See #1516 for an example. This also can happen with image sizing in htmlcore. More generally, having Pw and Ph correspond to visible parent width and height would potentially prevent this problem. See also #1518 for another case where visible parent size should be used.

Example code

Relevant output

Platform

macOS

Metadata

Metadata

Assignees

Labels

bugSomething isn't working correctlyconfirmedThis bug has been confirmed

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions