Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
overlay.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2010 at 14:30 UTC
Updated:
25 Jan 2010 at 16:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
casey commentedPeek-a-boo bug
http://www.positioniseverything.net/explorer/peekaboo.html
This also happens in IE6.
Comment #2
aspilicious commentedFixes the bug...
Tried to find some UI bugs with the changed settings, couldn't find a single one (or maybe im just blind) so setting to rtbc.
Comment #3
kiphaas7 commentedThere is a reason why it is set (or at least, why I set in the original patch) to visibility:hidden, to maintain it's height while hiding. This will introduce, a regression, jumping pageheights while loading new pages, guaranteed.
If it really is the peek-a-boo bug, then it should be solved by giving haslayout, as mentioned in the link in #1. Zoom:1 for instance, but I'd not be comfortable setting that anywhere else but in a conditionally commented css file for IE =< 7.
Comment #4
casey commentedVisibility:hidden is no longer necessary to maintain height. Besides I can't get it working using zoom:1 (maybe its not peek-a-boo after all)
Also, there is a new issue on overlay height while loading: #676008: Overlay's Loading 'spinner' graphic often not visible because it is displayed outside the viewport
Kiphaas7, if you agree on all this you may set this back to RTBC.
Comment #5
kiphaas7 commentedYes, it still is necessary. I just tried out HEAD ,manually setting your patch with firebug.
With patch:
loading image with old height -> jump to whitepage with 50-100px (-ish) height for like 0.1ms -> new height
without patch:
loading image with old height -> jump to whitepage with old height for like 0.1ms -> new height
Basically what was fixed in #664450: Heavy flicker effect due to white background rebuilding every time when going to new page within overlay.
Untill option 2 of #676008: Overlay's Loading 'spinner' graphic often not visible because it is displayed outside the viewport has landed (or something similar, at least so you don't get #664450: Heavy flicker effect due to white background rebuilding every time when going to new page within overlay again), I would hold off on submitting this, otherwise people will start screaming because #664450 will re-appear.
Comment #6
aspilicious commentedSo... make drupal impossible to work with for IE users? O_o
Comment #7
kiphaas7 commentedMeh, that might be a more pressing issue :P. RTBC then.
EDIT: Though it needs to be set back to "needs work" after committing this patch, since it still does introduce a regression.
Comment #8
aspilicious commentedYes kiphaas, i wa thinking the same...
It needs a different solution but, this has to be fixed in alpha...
Comment #9
kiphaas7 commentedGot where the "jump to extremely small height" comes from. The wrapper get's resized to 25px for a brief moment when the load event fires. And for some reason the min-height on wrapper is set to 0. Solution: either set a min-height for the wrapper, or make sure the height of the wrapper never get's below a certain number.
Comment #10
webchickUm. Wow, that's bad! Thanks for testing, aspilicious, and for the quick fix, casey!
Committed to HEAD. Thanks!
I've set this back as needs work, but I'm wondering if we should just re-open the old issue that fixed this bug originally so that the folks who worked on that original fix can come up with another solution. Unless they're all here already. ;)
Comment #11
kiphaas7 commentedIt was fixed in one of the monster overlay patches, and then modified from inline styles to a css class in some other issue. I think it's fine to follow up in this issue :).
Comment #12
casey commentedPlease review #676008: Overlay's Loading 'spinner' graphic often not visible because it is displayed outside the viewport to get issue fixed mentioned by @Kiphaas7 in #5 (also see #574164: Fix transitions between pages inside the overlay).
Comment #13
kiphaas7 commentedIssue still not fixed, even after applying #676008: Overlay's Loading 'spinner' graphic often not visible because it is displayed outside the viewport.
It's the wrapper getting the wrong height in between "loading...." and actually loading.
Comment #14
casey commentedNot tested, but I think this should work.
Comment #15
kiphaas7 commentedUnfortunately, it does not (tried it).
This however, does. I'm still not able to roll patches properly, because my dev pc is still in pieces, sorry for that.
Around line 46:
Around line 280:
Around line 300:
Around line 584:
EDIT: minor code change and comment cleanup.
Comment #16
casey commentedThis should work...
Comment #17
kiphaas7 commentedYou forgot to set to 'needs review' :). Will try out later today.
Comment #18
kiphaas7 commentedYup, it indeed fixes the issue, plus it is much more elegant than mine. Since it is such a small patch, RTBC?
Comment #19
webchickGreat!! Committed to HEAD!