Hello
I have a perspective window appearing with the following settings:
An option is used to make the popup window appear to fit the screen for devices with smaller screens. (viewport bound)
When I use this on a small screen or a small browser window this popup window launches with the default size so that I have to scroll sideways.
I struggled with this for a long time and noticed that if I later change the size of the popup window arbitrarily then the flexcontainer view inside gets adjusted correctly.
It seems that the size is not taken into account when the popup is initially launched, but after resizing the popup (e.g., changing its size), the layout recalculates correctly.
Does anyone have a solution or a workaround for this issue?
Best regards
Michał
I assume that the default view size is larger than the popup window bounds on a small device. Does the flex view components have shrink=1
?
I actually just reported this bug the other day to support, as my first-ish responsive project is being hindered by this... Support suggested setting the position props to auto when opening the popup eg position={"height":'auto' ,"width": 'auto' }
You can think of the bug as, the popup opens at its default size and the components all fit, then immediately it resizes the popup to actually fit the screen, but the resize doesn't trigger the components within the popup to resize themselves. The resize only affects the popup container. So the components are still sized beyond the bound of the popup 
However there's another bug where the height of the popup isn't resized, only the width. And if you drag the popup around, it jumps up, and if your popup is too tall you can no longer see the header to close it... And one more bug where, despite resizable being set, if you try to resize the popup it snaps to a new fixed size and doesn't budge, even if the new size now cuts off half of your components. Very annoying, and I don't know if there's a workaround. I also don't know how others haven't jumped up and down about these either tbh, as they kind of destroy the mobile experience
1 Like