|
#1
|
|||
|
|||
|
Comments popup problem (missing scroll bars) FIX
I found a little problem with the popup comments page. And I have a fix.
I was testing by adding multiple comments, 4-5+. Once the page got longer than the default 540px the popup window would not produce scroll bars. I tested this on multiple systems and found that Safari was the only browser that had scroll bars without applying the fix below. Firefox for OS X didn’t have scroll bars. In addition, IE and Firefox for windows didn’t have scroll bars either. Here is the simple fix: On line 518 of index.php I added scrollbars=yes and it fixed everything. Code:
$tpl = ereg_replace("<COMMENT_POPUP>","<a href='#' onclick=\"window.open('index.php?popup=comment&amp;showimage=$image_id','Comments','scrollbars=yes,width=480,height=540');\">$lang_comment_popup</a>",$tpl);
|
|
#2
|
||||
|
||||
|
I thought it defaulted to scrollbars=auto, but there you go.
Thanks, I'll change that. // punk
__________________
icq: 66760929 |
| Post Reply |
| Thread Tools | |
|
|