aboutsummaryrefslogtreecommitdiff
path: root/README.sv.md
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2025-03-12 16:35:41 +0100
committerFurkan Sahin <furkan-dev@proton.me>2025-03-12 16:35:41 +0100
commitfaed8484c4e2cf9171b5fff1e4a449bcfc8f9930 (patch)
treeaefae9c2e9a8bc4f77fc60a51e612e7828bbff07 /README.sv.md
parentc5cd4061854d51adc458a112ff16f015d8b48f73 (diff)
Avoid crashing on too many containers
If far too many containers are created, they can become so small that their size calculations come out negative, leading to crashes on asserts. Instead, set a lower bound for sizes and disable the container entirely if it goes below it, giving whatever space it used to the last container. The splits are not recalculated, so currently the effect is that if all containers have the same width fraction, they keep getting narrower until at some point they all round to zero and the last container will be given all the available space. A better behavior would have been if the additional container did not contribute to size and fraction calculations at all, but it's an extreme edge-case, anything is better than crashing, and this is easier to implement.
Diffstat (limited to 'README.sv.md')
0 files changed, 0 insertions, 0 deletions