Closed
Bug 1198657
Opened 9 years ago
Closed 9 years ago
Remove unnecessary minimized statusbar width update
Categories
(Firefox OS Graveyard :: Gaia::System::Status bar, Utility tray, Notification, defect)
Firefox OS Graveyard
Gaia::System::Status bar, Utility tray, Notification
ARM
Gonk (Firefox OS)
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: ting, Unassigned)
References
Details
I can see two _updateMinimizedStatusbarWidth() invocations when launch an app, one from handling |hierarchytopmostwindowchanged| and one from handling |appopened|. The first invocation gets different numbers of _minimizedStatusbarWidth in each launch which probably becasue the openning window is enlarging, and the 2nd one will get usual number (~ half screen width). The first one is unnecessary, we can avoid it (and getBoundingClientRect()). Also maybe we can skip _updateIconVisibility() in _updateMinimizedStatusbarWidth() if the width is not changed.
Comment 1•9 years ago
|
||
True (and looking forward to get rid of it!), but I wouldn't spend much time on this. All the minimized/maximized logic is going to go away on bug 1179723. It would be nice if you can give a try to that patch and provide some performance feedback! :)
Flags: needinfo?(janus926)
Reporter | ||
Comment 2•9 years ago
|
||
Great! Thanks for the info, I'll try the patch. Note for my self: _updateIconVisibility() is done twice when handle |appopened|, one from resumeUpdate(), one from _updateMinimizedStatusbarWidth().
Flags: needinfo?(janus926)
Reporter | ||
Comment 3•9 years ago
|
||
Oops, I didn't see patch in bug 1179723?
Reporter | ||
Comment 4•9 years ago
|
||
No longer valid as bug 1179723 is just landed.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•