ui-layout icon indicating copy to clipboard operation
ui-layout copied to clipboard

Percent sized containers and toggle buttons with some browsers are broken

Open bpatra opened this issue 8 years ago • 1 comments

Let us say I create the following container layout

<div ui-layout="{flow: 'column'}" >
  <div ui-layout-container size="30%"></div>
  <div ui-layout-container></div>
</div>

which is a vertically separated layout with one slidebar and the first left item is 30% of the container. Then, after toggling to make first layout container disappear (the one with 30%) and toggling again to open it, the displayed size is incorrect. Indeed the 30% has been interpreted as 30px!

See reproduction case http://plnkr.co/edit/UvhJOo3WxHjdpY0huCuk?p=preview Angular ui layout: 1.4.3 Angular 1.4.10

Reproducible deterministically with Firefox and MS Edge, randomly with Chrome.

Note that the collapsing of right section is broken but it is another bug, the issue #209

bpatra avatar Mar 15 '17 17:03 bpatra

Seeing this issue even with fixed size in pinxel on chrome. e.g: size="28px"

ghost avatar Jun 15 '17 19:06 ghost