Closed Bug 1164897 Opened 9 years ago Closed 9 years ago

Remove hardcoded status bar height

Categories

(Firefox for iOS :: General, defect)

Other
iOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
fennec + ---

People

(Reporter: st3fan, Assigned: sleroux)

References

Details

Attachments

(2 files)

In a number of places we depend on a fixed status bar height of 20 points. This breaks if the status bar height changes. For example when you enable Personal Hotspot on an iPhone, the status bar will be 40 points high and most of our layouts break.
This probably isn't blocking by itself, but it sounds like this is causing problems that are blocking.
Assignee: nobody → sleroux
tracking-fennec: ? → +
Removed the hardcoded status bar heights everywhere except for the TabTrayController which will come as part of the refactor branch
Attachment #8608775 - Flags: review?(sarentz)
Comment on attachment 8608775 [details] [review]
PR https://github.com/mozilla/firefox-ios/pull/485

This looks pretty good. One thing I found: In the simulator when I toggle the In-Call Status Bar (which is a double height status bar), the tab tray controller is correctly pushed down to make room, but it never goes back up when the bar goes away. This does work in the browserviewcontroller.
Attachment #8608775 - Flags: review?(sarentz) → review+
Attached patch CommitSplinter Review
Added a notification listener for whenever the status bar frame changes so we can update the layout accordingly.
Attachment #8609398 - Flags: review?(sarentz)
Comment on attachment 8609398 [details] [diff] [review]
Commit

Awesome!
Attachment #8609398 - Flags: review?(sarentz) → review+
Merged
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: