Popup window size

Does anyone know how to control the size of the popup windows? When I go to select a related record in a subpanel, the popup window is much bigger than the screen on my laptop.

You could find out the name of the div controlling/encasing the popup and change this within the style.css for the theme.

Hm, changing the CSS doesn’t seem to work, but maybe I’m just not finding the right div/class. Do those popup windows have divs/classes for the whole windows?

It looks like those popup windows have 600/400 set as the default dimensions. Is there a way to make those a percentage, rather than fixed values? I think it’s in the javascript somewhere; in include/javascript, there’s a file called popup_parent_helper.js that has the 600/400 dimensions in it, but changing them there doesn’t seem to have any effect.

It is the open_popup function which opens these windows. It has the size as parameters. For example for a related field it is located in /include/SugarFields/Fields/Relate/EditView.tpl .You would want to make your changes in the custom folder to make them upgrade safe.

1 Like

Aha! Changing the open_Popup parameters in custom/include/SugarFields/Fields/Relate/EditView.tpl indeed did the trick. Thank you!