Nested flex box wrap not working in IE
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:
- Open link in IE
- Adjust size of preview pane
- Inner HBox does not wrap
- Open link in Chrome
- Adjust size of preview pane
- 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

Chrome

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
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
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
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.