Closed
Bug 352456
Opened 18 years ago
Closed 18 years ago
notification flashes before sliding in
Categories
(Toolkit :: UI Widgets, defect)
Toolkit
UI Widgets
Tracking
()
RESOLVED
FIXED
People
(Reporter: mwu, Assigned: mwu)
References
Details
(Keywords: fixed1.8.1)
Attachments
(1 file, 2 obsolete files)
2.59 KB,
patch
|
enndeakin
:
first-review+
mconnor
:
approval1.8.1+
|
Details | Diff | Splinter Review |
Because we need to calculate the height of the notification before we can setup the slide animation, this can cause the notification to be briefly visible before sliding in.
Comment 1•18 years ago
|
||
Also, the content below the notificationbox immediately shifts down when the height is calculated, shifts back up, and then shift gradually down as the box gradually increases in height. Perhaps it is possible to 1) get the height by floating over the content while invisible 2) have a containing box around the current notificationbox with the current notificationbox's content invisible to get the height, set the height on the containing box so the main content doesn't shift again, and then animate the current notificationbox to full height.
Assignee | ||
Comment 2•18 years ago
|
||
Messy, but it seems to work.
Assignee: nobody → flamingice
Status: NEW → ASSIGNED
Comment 3•18 years ago
|
||
Neal and Michael, this wfm in the content window as well as in the add-ons mgr with the patch from Bug 348576 using multiple notifications... is there any reason not to go with this approach? Would this be too much for 1.8.1?
Attachment #238182 -
Flags: first-review?(enndeakin)
Assignee | ||
Comment 4•18 years ago
|
||
(In reply to comment #3) > Created an attachment (id=238182) [edit] > simple patch that works for me > > Neal and Michael, this wfm in the content window as well as in the add-ons mgr > with the patch from Bug 348576 using multiple notifications... is there any > reason not to go with this approach? Would this be too much for 1.8.1? > This does not fix the problem - it merely hides it well enough for your system. To see what I mean, put an alert() at the very beginning of _showNotification. Also, notifications in popup windows w/o any browser UI will continue to flash, AFAICT.
Comment 5•18 years ago
|
||
Is a special testcase needed to see this issue?
Comment 6•18 years ago
|
||
It doesn't flash in the Add-ons mgr. at all with this patch on Win32 and I verified that without this patch it doesn't flash on Mac OS X which is probably why this was never reported. Why shouldn't setting these style properties fix this?
Comment 7•18 years ago
|
||
(In reply to comment #5) > Is a special testcase needed to see this issue? No, it is readily apparent on Win32 with normal notifications.
Assignee | ||
Comment 8•18 years ago
|
||
Both of these patches also have an issue with calculating the height when there is already a visible notification.
Assignee | ||
Comment 9•18 years ago
|
||
This should always calculate the correct height without flashing the notification.
Attachment #238156 -
Attachment is obsolete: true
Attachment #238182 -
Attachment is obsolete: true
Attachment #238258 -
Flags: first-review?(enndeakin)
Attachment #238182 -
Flags: first-review?(enndeakin)
Comment 10•18 years ago
|
||
Thanks for doing this Michael!
Comment 11•18 years ago
|
||
Comment on attachment 238258 [details] [diff] [review] Hide height calculation, v2 Seems OK
Attachment #238258 -
Flags: first-review?(enndeakin) → first-review+
Assignee | ||
Comment 12•18 years ago
|
||
Checking in toolkit/content/widgets/notification.xml; /cvsroot/mozilla/toolkit/content/widgets/notification.xml,v <-- notification.xml new revision: 1.10; previous revision: 1.9 done
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Comment 13•18 years ago
|
||
Comment on attachment 238258 [details] [diff] [review] Hide height calculation, v2 I'd like this on branch to fix the visual glitch seen on Win32.. also so Bug 348576 could land on the branch since the visual glitch is even more pronounced in the add-ons mgr. when using notificationbox.
Attachment #238258 -
Flags: approval1.8.1?
Comment 14•18 years ago
|
||
Comment on attachment 238258 [details] [diff] [review] Hide height calculation, v2 a=mconnor on behalf of drivers for 1.8 branch checkin
Attachment #238258 -
Flags: approval1.8.1? → approval1.8.1+
Assignee | ||
Comment 15•18 years ago
|
||
Patch applies with -F 3. Branch: Checking in toolkit/content/widgets/notification.xml; /cvsroot/mozilla/toolkit/content/widgets/notification.xml,v <-- notification.xml new revision: 1.1.2.8; previous revision: 1.1.2.7 done
Keywords: fixed1.8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•