I fixed this by changing the iframe resize callback registration from the jQuery UI tabs 'show' event to the 'load' event. The load event is fired after the tabs have rendered, so when we calculate the height of the content in the iframe, it includes the padding around the tabs.

I also removed the white background from #media-browser-page because it sticks out from behind the overlay content and looks bad.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jessebeach’s picture

Status: Needs review » Needs work

The last submitted patch, 1701732_media-browser-overlay-hidden-content_1.patch, failed testing.

jessebeach’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
FileSize
926 bytes

Sorry, the patch above was created against an already-patched version of the module.

I rerolled it against the 7.x-1.x branch.

jessebeach’s picture

Status: Needs work » Needs review

Setting to Needs review

Status: Needs review » Needs work

The last submitted patch, 1701732_media-browser-overlay-hidden-content_2.patch, failed testing.

jessebeach’s picture

Status: Needs work » Needs review
FileSize
542 bytes

Trying this again. No idea why these patches aren't applying.

Status: Needs review » Needs work

The last submitted patch, 1701732_media-browser-overlay-hidden-content_3.patch, failed testing.

jessebeach’s picture

I really don't understand why this patch isn't applying. It's a one line change that makes the overlay browser look not broken. Just making the change and committing it would be lovely. Thank you!

jessebeach’s picture

Status: Needs work » Needs review
attiks’s picture

AFAIK there's nothing wrong with your patch the tests are having problems with undefined variables.

tim.plunkett’s picture

attiks’s picture

@tim, it did't when I had a look, very strange ...

Dave Reid’s picture

@jessebeach: Could you give me maybe a couple of instructions on how to produce the problem that this fixes? I'm not sure I quite understand from the original report.

acrollet’s picture

Status: Needs review » Reviewed & tested by the community

@Dave Reid to reproduce the problem, open the media browser while logged in as a user that only has permission to see the 'Library' tab. (i.e. doesn't have, I believe, the "Edit media" permission.) Patch works nicely for me.

jessebeach’s picture

@Dave Reid, were you able to reproduce the issue with @acrollet's instructions?

ParisLiakos’s picture

Status: Reviewed & tested by the community » Fixed

Thanks i was able to reproduce, submit buttons where hidden..it also fixed the height for admin users as well, before the patch the bottom border was hidden.small deal but i am glad hehe:)

commited

Edit: i tried the patch on 7.x-2.x and it breaks the browser. so i ll leave show: as is there

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.