angular-ui/ui-layout

Percent min-size and max-size should be recalculated on resize

kommunication opened this issue · 0 comments

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:

  1. Resize the bottom panel to a large/maximum size ,
  2. Reduce/Resize main window to a relatively small size,
  3. Notice that the bottom panel now occupies more than 50% of available space