This topic is locked

Detailspreview

12/30/2007 2:27:19 PM
PHPRunner General questions
C
charly1211 author

Which variables are responsible for the coordinates of the detailspreview window? How can I fix the appearance of the window?

J
Jane 1/8/2008

Hi,
you need to edit this code in the generated include/ajaxsuggest.js file:

if ( $.browser.mozilla && ( $("#master_details").get(0).offsetTop > window.innerHeight/2 + document.body.scrollTop ) ) {

$("#master_details").css("top", ($("#master_details").get(0).offsetTop - $("#master_details").get(0).offsetHeight) +"px");

} else if ( $.browser.msie && ( $("#master_details").get(0).offsetTop > document.body.clientHeight/2 + document.body.scrollTop ) ) {

$("#master_details").css("top", ($("#master_details").get(0).offsetTop - $("#master_details").get(0).offsetHeight) +"px");

}