The code is in gadget_page_shell_form.htm. Around Line 1117 (depending on your release).
//set correct position of preferences form - to the right or the left of the block.
var dpfstyobj = document.getElementById('div_preferences_form').style;
var gadg_l = parseInt(gadg_iframe.style.left);
var gadg_w = parseInt(gadg_iframe.style.width);
var pref_w = parseInt(dpfstyobj.width);
var twidth = gadg_l + gadg_w + pref_w;
//alert ("gadg_l:" + gadg_l + "; gadg_w:" + gadg_w + "; pref_w:" + pref_w + "; total:" + twidth + "; clientWidth:" + document.body.clientWidth);
if (twidth <= document.body.clientWidth)
{
dpfstyobj.left = gadg_l + gadg_w + 3;
}
else
{
if ((gadg_l - pref_w) > 0)
{
dpfstyobj.left = gadg_l - pref_w;
}
else
{
dpfstyobj.left = gadg_l;
}
}
Bob Jude Ferrante
Director of Business and Development
WebFOCUS Performance Management
Bob_Ferrante@ibi.com
917-339-5105
I'll take any questions about PMF - business or technical - anytime!