This topic is locked
[SOLVED]

 align a popup

3/21/2019 7:55:32 AM
PHPRunner General questions
A
ayctech author

Hi, what would be the property to align a popup in the center of the screen, the following code does not center
var win = Runner.displayPopup( {

url: "rendir_detalle_add.php",

width: 922,

height: 755,

left: 321,

top: 94
});

bobdutil 3/23/2019



Hi, what would be the property to align a popup in the center of the screen, the following code does not center
var win = Runner.displayPopup( {

url: "rendir_detalle_add.php",

width: 922,

height: 755,

left: 321,

top: 94
});




Did you see this solution?

https://stackoverflow.com/questions/4068373/center-a-popup-window-on-screen

I was trying to find a way of doing it too.

A
ayctech author 3/24/2019

for some strange reason it works with this code
thanks
var win = Runner.displayPopup( {
url: "products_add.php",
header: 'Add new product',
afterCreate: function(win) {
win.setWidth(700);
win.setHeight(500);
}
});