gallery popup

sergeh

Avatar: sergeh

2006-10-03 02:17

was just wondering how do I change the height of the popup, tried doing it in windows.php and in standard.js but nothing ever changed no matter what I did

treewood (OpenSolution)

Avatar: treewood

2006-10-03 08:20

sergeh - in window.php You have javaScript code that change size of it. first here:
var iPlusWidth = 0;
var iPlusHeight = 0;
if( isIE ){
iPlusWidth = 4;
iPlusHeight = 4;
}
and next here:
if( width > screen.availWidth ){
width = screen.availWidth - screen.availWidth/5;
document.body.scroll = "yes";
}
if( height > screen.availHeight ){
height = screen.availHeight - screen.availHeight/5;
document.body.scroll = "yes";
}

sergeh

Avatar: sergeh

2006-10-03 20:19

hey treewood,

I tried that before but no matter what number I put the size remains the same, I even tried really big numbers just to see if it does anything or not but the popup remained the same size in IE and FF

wewior (OpenSolution)

Avatar: wewior

2006-10-04 09:05

what values have you change?
popup window is first open as big as it set in js/standard.js in function windowPhoto, and there are ... "heigth=500,width=700,
and then when photo is loaded window change sizes to that image but you can change that size by set variables iPlusWidth and iPlusHeight for example:
iPlusWidth = 20;
iPlusHeight = 20;
and put them after lines:
var iPlusWidth = 0;
var iPlusHeight = 0;
if( isIE ){
iPlusWidth = 4;
iPlusHeight = 4;
}

sergeh

Avatar: sergeh

2006-10-05 03:55

I don't understand what I have to change... I tried replacing everything related to iPlusHeight but it made no difference

I have hardcoded a value for the height

replaced

window.resizeTo( width, height+iPlusHeight );

with

window.resizeTo( width, "400" );

and it made no difference at all... what am I doing wrong?

wewior (OpenSolution)

Avatar: wewior

2006-10-05 10:23

please post here link to your page online...

sergeh

Avatar: sergeh

2006-10-06 16:52

hey wewior

I don't have a link for now, it's on localhost.

What do you think the problem could be?

sergeh

Avatar: sergeh

2006-10-06 22:51

nevermind, turns out gallery.js controls the gallery... go figure, didn't have that file in QC 1.2, works perfectly now

Back to top
about us | contact