How to always show the scrollbar in detail view?

Phoca Gallery - image gallery extension
cryptbear
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 25 Apr 2012, 19:18

How to always show the scrollbar in detail view?

Post by cryptbear »

Where can I change the configuration in Phoca Gallery that it always show me the vertical scrollbar?
My website has a overflow-y:scroll; CSS tag and when I open a detailed view of a picture, the vertical scrollbar disappears.
It's an annoying effect, because the layout jumps horizontally.


I tried to change in .../views/detail/view.html.php the value:

$oH = 'overflow:hidden';

to

$oH ='';

but nothing happens.

I also tried to find the lines which are explained in FAQ, but I didn't find them...

<?php

// FROM
." html,body, .contentpane{overflow:hidden;background:".
$detail_window_background_color.";} \n"

// TO
." html,body .contentpane{background:".$detail_window_background_color
.";} \n"
?>

Thanks in advance!

Ciaooo!
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to always show the scrollbar in detail view?

Post by Jan »

Hi, did you do it on right place, checked without any problem :idea:

Maybe try to check, if some other css does not include some attributes which can change it :idea:

Jan
If you find Phoca extensions useful, please support the project
cryptbear
Phoca Newbie
Phoca Newbie
Posts: 8
Joined: 25 Apr 2012, 19:18

Re: How to always show the scrollbar in detail view?

Post by cryptbear »

The issue only appears with Modalbox or with Standard Popup Window. The other detail viewer like Lightbox, Slimbox, Highslide JS are ok and show the vertical scrollbar of the website... And it only disappears if the content of the website doesn't need to be scrolled...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49150
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: How to always show the scrollbar in detail view?

Post by Jan »

Hi, there are two different methods, in image methods, scrollbars are never used:
https://www.phoca.cz/documents/50-phoca/ ... al-advices (8)
If you find Phoca extensions useful, please support the project
Post Reply