This topic is locked

Popup Positioning

8/5/2013 9:52:06 AM
PHPRunner General questions
U
uknutz author

Hi Admin / Experts
When you select "Truncate large fields" and you click the more.. link, on all of the fields I have this on, the popup is always a long thin box off to the right. I would like to make the box more square and in the centre of the screen.
Where is the code that creates the popup?
Thanks in advance

Jim

Sergey Kornilov admin 8/7/2013

Check largeTextOpenerDelegate function in include/runnerJS/RunnerAll.js file. This is where popup is created.

largeTextOpenerDelegate: function(e){

var target = Runner.Event.prototype.getTarget(e);

if(target.nodeName != "A" || !$(target).attr("query")) {

return false;

}

Runner.Event.prototype.stopEvent(e);



var self = this,

query = $(target).attr("query"),

args = {

render: true,

headerContent: " ",

footerContent: " "

};



var closeTextWin = function(fullTextWin){

fullTextWin.destroy();

};



var afterCreateTextWin = function(fullTextWin){

var self = this;

$.runnerAJAX(query, {id: self.id, rndVal: Math.random()}, function(respObj){

if (respObj.success){

fullTextWin.set('bodyContent', respObj.textCont);

}else{

fullTextWin.set('bodyContent', respObj.error || "Server error");

}

fullTextWin.render();

// correct YUI window size

Runner.pages.PageManager.correctYUIWindowSize(self.tName, self.pageId, true, fullTextWin);

});

};



//create fly win yui panel

Runner.pages.PageManager.createFlyWin.call(this, args, false, afterCreateTextWin, closeTextWin);

}