maxWidth
and maxHeight
not respected when padding in one of the axiz exceeds the max values
#1796
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
To reproduce the issue, make a single root container with these two properties set:
maxWidth: 10
paddingLeft: 100
Expected result:
The maxWidth of the container is respected and the container has a total width of 10.
Actual:
The maxWidth of the container is not respected and the container has a total width of 100.
Here is a link to a playground with the example
I also encountered a perhaps a similar problem. It may be related. If the parent size is roughly the same as the total size of all the Child, then the child gets a width: 0. But if you make the window smaller or larger, they appear again.
Link to playground
There seems to be no problem if all the children are the same size. But I deliberately set the first one to 60px and the others to 64px