If the view used in the popup dialog has lots of exposed filters, or lists lots of metadata under each image, then the pager or even some view items can get cut off by the bottom of the iframe.

This is owing to the fact that lots of elements in the iframe (including the iframe) are restricted to 446px high (or some variation on it.) These are hardcoded in e.g. imagebrowser.css and .js, and are therefore difficult to override with your own themeing.

I'll attach a patch in the first comment to this ticket which exposes the magic "446" as a Drupal system variable.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jp.stacey’s picture

Please find attached a patch which exposes "446" as a Drupal system variable imagebrowser_height, then pipes it through to browser.tpl.php and the Drupal.settings.imagebrowser.baseheight setting.

jp.stacey’s picture

Bah, a hunk in the patches to the JS files failed on one of those trailing/not-trailing newlines. Reattaching.

jp.stacey’s picture

And again - Javascript casts numbers to strings during addition, so ensure Drupal.settings.imagebrowser.baseheight is numeric.

jp.stacey’s picture

Here's a separate, one-line patch to the pager styling, which currently leaves the display of all the pager li items to the browser (so typically block display.)

jp.stacey’s picture

Sorry, separate patch attached now.