Skip to content
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
@kommunication

Description

@kommunication

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions