This repository was archived by the owner on Sep 8, 2020. It is now read-only.
This repository was archived by the owner on Sep 8, 2020. It is now read-only.
Percent min-size and max-size should be recalculated on resize #227
Open
Description
When min-size and max-sizes are expressed as percent of total available space, it is possible to break the size constraint by resizing the main window. Whenever possible, it would be nice to respect proportional size constraints when the available space changes.
Simple sample case:
Angular 1.4.10
ui.layout 1.4.3
<div ui-layout >
<div ui-layout-container="central" class=" html-back" ></div>
<div ui-layout-container size="200px" max-size="50%" class=" css-back" ></div>
</div>
https://plnkr.co/edit/648bWuEqN7L8rLo1GuKn?p=preview
Steps to reproduce:
- Resize the bottom panel to a large/maximum size ,
- Reduce/Resize main window to a relatively small size,
- Notice that the bottom panel now occupies more than 50% of available space
Metadata
Metadata
Assignees
Labels
No labels