Modal box initial size too narrow

Hi
We have discovered when requesting the modal box popup from related data links in any random list , the width is too narrow. Se attached picts for one example. The right side is "cut off". Happens once after a page refresh.
Not a big deal but irritating.
 

Attachments

  • modalbox-size-afterrefresh.png
    modalbox-size-afterrefresh.png
    24.3 KB · Views: 225
  • modalbox-size-start.png
    modalbox-size-start.png
    23.5 KB · Views: 189
Did you set custom css
#listform_$c .fabrikDataContainer {overflow:auto}?
It seems in this case after opening a 2nd... popup FabrikDataContainer no longer is inheriting the table width.

As a workaround you can set a min-width, e.g.
#listform_$c .fabrikDataContainer {overflow:auto;min-width:600px}
 
After upgrade to fabrik 3.4.2 the modal box created from related data links in a list is even more "narrow", some 300px wide . We see that the default is 300 in js code. The default behaviour of the box must be to show the full width of the list in the box using the screen space available. The width we need for now varies , some 600 -1000px.
This is a major change in behaviour since "last version".
Box Height fills the avaliable space in screen.
Do you have more info? Any setting to tweak?
 
Can you examine the popup in dev tools, and see if the template has inserted a wrapper into the popup DOM structure?

The structure should be two nested divs - itemContent and then itemContentPadding, then within that the page header and form

I'm not sure what versions of Gantry do what, but Gantry 5 has a system plugin which inserts an extra div around all DOM structures being served up (regardless of whether they are page loads or AJAX calls), with an id of g-page-surround, which has a bunch of styling on it that was breaking the way we calculate the content width when resizing the window.

So, check to see if your template is doing something similar.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top