Closed geoffder closed 1 year ago
Having experimented a bit more I can narrow it down a bit, it seems to only occur when all flexGrows in the box are 0, while the one with a corresponding maxHeight is set to 1. Setting each (or at least one of the others) to 1, then using a large flexGrow (like 100) for the one which is supposed to be taking up the space has allowed resizing while achieving the desired layout. e.g.
header: flexGrow 0
contents: flexGrow 1; maxHeight x
footer: flexGrow 0
Leads to the exception, while the following does not.
header: flexGrow 0 (or 1)
contents: flexGrow 100; maxHeight x
footer: flexGrow 1
I found this (closed on merge) issue https://github.com/revery-ui/revery/issues/180, which sounds pretty similar. I've never had it happen before now, when I set the Style maxHeight on an element that has flexGrow set (= 1). Removing either the flexGrow or maxHeight settings allows window resizing without the exception.