In theme eyeball and Igames for CP 1.20, when you click on intermediate image display the popup window fits nicely to the picture. In allmost all other themes you have to use your mouse to make the picture fit in the popup window.
I use CalskinV6 and the popup window don't fit exactly to the the picture.
I have to edit the theme file, but where to edit.
Quote from: "thebign"In theme eyeball and Igames for CP 1.20, when you click on intermediate image display the popup window fits nicely to the picture. In allmost all other themes you have to use your mouse to make the picture fit in the popup window.
I use CalskinV6 and the popup window don't fit exactly to the the picture.
I have to edit the theme file, but where to edit.
As I remember the popup behave is ruled by scripts.js in your cpg root dir. Look at 'function adjust_popup()'.
Quote from: "DaMysterious"Quote from: "thebign"In theme eyeball and Igames for CP 1.20, when you click on intermediate image display the popup window fits nicely to the picture. In allmost all other themes you have to use your mouse to make the picture fit in the popup window.
I use CalskinV6 and the popup window don't fit exactly to the the picture.
I have to edit the theme file, but where to edit.
As I remember the popup behave is ruled by scripts.js in your cpg root dir. Look at 'function adjust_popup()'.
But all the themes are using the same script
Quote from: "thebign"But all the themes are using the same script
Maybe there are little differences between EyeBall and the other themes. CaliScinV6 is based on the default theme.php and styel.css as all my other themes. Sorry that I could'nt help.
take a look at displayimage.php and look for if (isset($image_size['reduced'])) {
$winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
$winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
Play around with the value that is added to $winsizeX and $wnisizeY
GauGau
Quote from: "gaugau"take a look at displayimage.php and look for if (isset($image_size['reduced'])) {
$winsizeX = $CURRENT_PIC_DATA['pwidth'] + 16;
$winsizeY = $CURRENT_PIC_DATA['pheight'] + 16;
Play around with the value that is added to $winsizeX and $wnisizeY
GauGau
Thanks Gau Gau
I made my settings like this and now it works great:
if (isset($image_size['reduced'])) {
$winsizeX = $CURRENT_PIC_DATA['pwidth'] + 38;
$winsizeY = $CURRENT_PIC_DATA['pheight'] + 36;