Closed CryZe closed 4 months ago
If the width or height is 0, the element likely isn't mounted into the DOM. This usually isn't a problem, but if we end up resizing the layout, we would resize it based on a size of 0, which would break the entire layout. This happened here:
https://github.com/LiveSplit/LiveSplitOne/issues/881
Rendering the layout with a size of 0 is also a waste of time, so this ends up benefiting us in multiple ways.
If the width or height is 0, the element likely isn't mounted into the DOM. This usually isn't a problem, but if we end up resizing the layout, we would resize it based on a size of 0, which would break the entire layout. This happened here:
https://github.com/LiveSplit/LiveSplitOne/issues/881
Rendering the layout with a size of 0 is also a waste of time, so this ends up benefiting us in multiple ways.