Closed (fixed)
Project:
D7 Media
Version:
7.x-2.x-dev
Component:
User interface
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 May 2012 at 17:39 UTC
Updated:
27 May 2012 at 23:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
othermachines commentedPatched...
Comment #2
RobW commentedIs there a way to resolve this without !important? There should be no important declarations in any Drupal core or contrib css, especially if that css isn't divided into base.css, admin.css, and theme.css files.
Comment #3
RobW commentedActually, since Admin module creates the conflict, I think this might be better in their issue queue.
I didn't do too much testing, but:
admin-ahclass to all Drupal pages, whether they're an iframe or not. Fixing this would fix the style conflict.admin-expanded { margin-left: 260px; }in the stylesheet and then animating with a css transition. Better performance, less js, less dom manipulation, more separation between style and presentation, easier to maintain or alter, degrades gracefully, etc.Comment #4
othermachines commentedYour comments are appreciated.
Having done some further investigation, it appears that the same issue arose with the admin_menu module. This was met with a "temporary fix" in media_page_alter():
Media issue queue: Issue #914834: Double admin menu...what does it mean?
Here is the related issue from the Admin Menu queue: Issue #914786: Best way to disable admin_menu on iframe popups
Discovered an issue posted in Admin (unfortunately no follow-ups as of yet): Issue #1268324: CSS Compatibility with Media module browser
Since it was seen as fit to provide a temporary fix for admin_menu, does it make sense to do the same for admin module?
If so, I've attached a patch (no !important necessary!). Works well in my installation.
Next step, I guess, is to mosey over to Admin and give them a poke...
Cheers -
Comment #5
dave reidAfter reading a couple of other related issues, I think this is the correct patch that should help resolve this.
Comment #6
dave reidTested and confirmed #5. Committed to 7.x-2.x and 7.x-1.x.
http://drupalcode.org/project/media.git/commit/ef8c386
http://drupalcode.org/project/media.git/commit/7c4ecb5
Thanks!
Comment #7
RobW commentedThanks for the expanded background. So is this just a general Drupal issue, that some modules render a whole page and can't tell everyone else they've done it in an iframe? Wonder if D8 has any plans for some sort of core hook iframe create, or better yet a core non-iframe modal API.
Comment #8
RobW commentedAh, While I was writing David Reid replied and showed us the way. Thanks.