Project:Greybox
Version:5.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (works as designed)

Issue Summary

With drupal 5rc2 i had to remove

width: 400px;
height: 400px;

from #GB_window in order to use the settings provided in the admin/settings page.
Without it the height of the greybox window would shrink from its customized size to 400 px.
I'm not a developer, but I hope my findings might be of interest anyway. I've not tried to replicate the problem in other installations.

Anyways thanks for a great module! =)

Comments

#1

if height is disabled from #GB_window in greybox.css, the DOM inspector (Firefox) shows the height property in the style_"" rule of the #GB_window div element

if it is not disabled, the above mentioned property disappears, all others remaining (width, left, display)

#2

I've got some strange problems with the popup window.

In firefox it doesn't look too bad but I have a vertical scroll bar for no reason.

In internet explorer it loads a horizontal and vertical scroll bar, but I can't figure out why.

If someone could please help me figure this out I would greatly appreciate it.

This first screenshot is the issue in Firefox.

AttachmentSize
greyboxFF.jpg 49.87 KB

#3

Here is the same issue, different effect in Internet Explorer 7

Any help would be appreciated.

You can reach me via the contact form on Drupal.org

Thanks!

AttachmentSize
greyboxIE.jpg 56.2 KB

#4

Status:active» closed (works as designed)

The code is actually:

function GB_show(caption, url, height, width) {
  GB_HEIGHT = height || 400;
  GB_WIDTH = width || 400;

  .....

}

Here, height || 400 means get the height variable's value, and if it's not available, set it to 400.

Hope you have the right copy of greybox's js.