openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Nested flex box wrap not working in IE

Open luciencooper opened this issue 10 years ago • 4 comments

OpenUI5 version: 1.40.6

Browser/version (+device/version): IE 11

Any other tested browsers/devices(OK/FAIL): Chrome (OK)

URL (minimal example if possible): https://embed.plnkr.co/6CFDXG3fTblsFmSi5CwT/

Steps to reproduce the problem:

  1. Open link in IE
  2. Adjust size of preview pane
  3. Inner HBox does not wrap
  4. Open link in Chrome
  5. Adjust size of preview pane
  6. Inner HBox does wrap

What is the expected result? Should wrap all HBox controls

What happens instead? Wraps the outer HBox but not the inner HBox

Any other information? (attach screenshot if possible)

IE

broken

Chrome

working

luciencooper avatar Sep 21 '16 09:09 luciencooper

Hi,

why do you need the VBoxes inbetween? They have set noWrap wich then probably causes IE to behave differently. I tried without the vBoxes https://plnkr.co/edit/lNmwuqka8hnjRNPkIQfh?p=preview

Then it looks fine.

best regards, Tobias

ghost avatar Sep 21 '16 10:09 ghost

What about this more complex example, here there are 2 forms each with 2 rows. On a larger screen they appear side by side, on a smaller screen the form to the right wraps under the first form. That works on both browsers correctly, but then when it comes to wrapping the controls inside each row, it doesn't want to when using IE.

I'm not sure how I could fix this, I can't really remove the VBox controls in this case, or can I?

https://plnkr.co/edit/eXlojPiNCjwt7eim83XB?p=preview

luciencooper avatar Sep 21 '16 12:09 luciencooper

For such a wrapping layout, we tend to use the Responsive grid. It divides the screen in 12 parts and is quite performant since it uses media queries. For these kind of layouts i personally find it also a bit easier to see what happens because there is not much so much nesting.

I opened a ticket to investigate if there is an easy workaround for this browser bug 1670435513. It seems that microsoft also noticed it, since it is fixed in IE egde i don't know if we are able to workaround it.

Best regards, Tobias

ghost avatar Sep 22 '16 07:09 ghost

I've looked into it, but I don't see a fix other than re-implementing the layout logic in JavaScript and dynamically changing the HTML/CSS. But that's not what we want. The FlexBox control is just a wrapper for the native browser functionality. So, we can only hope that Microsoft fixes this.

thomaskoetter avatar Sep 23 '16 08:09 thomaskoetter