Skip to content
This repository has been 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
kommunication opened this issue Mar 16, 2017 · 0 comments
Open

Comments

@kommunication
Copy link

kommunication commented Mar 16, 2017

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant