Search code examples
genexus

Popups too small and with scroll bars in Genexus


In genexus (17u6, with wwp, but it's a problem even without this) when I call a panel as a popup, it is systematically slightly too big for the frame that contains it and this creates hideous scroll bars

enter image description here

I believe that genexus creates the iframes slightly larger than the panel (928px vs 900px), but still not enough

Even if I try to create the popup indicating a size I have the same problem

&window.Object = WLESL000.Create()
&window.Autoresize = false
&window.Width = 1430
&window.Open()

enter image description here

1430 becomes an iframe of 1458, not enough

I tried to work with classes, but the only thing I managed to get was a fixed size popup big enough to fit the whole thing, but that's not a satisfactory solution. Is there a way to modify the behavior of genexus in the creation of the iframe or in any case to make him eliminate the scroll bars?


Solution

  • After asking to wwp support I found that the simpler way is to create a new class called gx-popup-document following this https://docs.workwithplus.com/com.wiki.wiki?3321,Change+the+width+of+a+PopUp, and adding to the custom properties:

    min-width: 1200px !important; overflow: hidden !important

    This hide the scroll bars of the popup

    This is another possibility, but I didn't try it

    https://docs.workwithplus.com/com.wiki.wiki?3633,Popup+with+Web+Component+in+User+Action,