Problem/Motivation
We are using Media 7.x-2.0-alpha4 with Navbar 7.x-1.6 and jQuery Update 1.8. It works with normal Drupal jQuery (1.4.4) but not with 1.8+.
When using a media field to add an image the media browser opens up as expected but if the Navbar is docked to the left, vertically, then the browser is hidden behind the Navbar. I have gone through all the related issues as well as #2272567: Media dialog appears underneath the Ctools modal dialog when using jQuery UI 1.10. However, I don't think that this is the issue and I just think that the Media browser should adjust its dimensions to fit in the space between the Navbar and the right browser scroll bar.
Proposed resolution
The browser should adjust it's dimensions to fit in the space between the Navbar and the right browser scroll bar.
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#8 | 2497253-media-overlay-behind-navbar.patch | 334 bytes | Elijah Lynn |
#2 | Selection_334.png | 60 KB | Elijah Lynn |
Comments
Comment #1
Elijah LynnComment #2
Elijah LynnComment #3
Elijah LynnI am wondering if this should be a Navbar issue...
At any rate, here is a related (but maybe not) issue with Navbar that I am going to crosslink for now.
#2066779: Navbar breaks media browser
Comment #4
Elijah LynnComment #5
Elijah LynnComment #6
Elijah LynnAdded note that this only happens with jQuery 1.8.
Comment #7
Elijah LynnOkay, this appears to actually be because of the jQuery Stacking that was introduced in jQuery UI 1.10+. I now believe this is a Navbar issue so I am moving this issue to the Navbar issue queue.
https://api.jqueryui.com/theming/stacking-elements/
Comment #8
Elijah LynnTurns out this is actually because Ember replaces the media.css file with it's own (seems problematic to maintain) and loses the .ui-front z-index property. It appears there is much more to 'backport' into the Ember media.css but here is a patch for just this one issue.
I am also not sure this is the precise way to fix this issue (Google jQuery stacking) but this is a pragmatic approach for now.