firefox-ios icon indicating copy to clipboard operation
firefox-ios copied to clipboard

The navigation bar has become very thick

Open arnavbhate opened this issue 1 year ago • 6 comments

Steps to reproduce

Open Firefox

Expected behavior

Normal size navigation bar

Actual behavior

Thick navigation bar with extra spacing

Device & build information

  • Device: iPad Air (5th generation), iPadOS 17.2
  • Build version: 121.2 (37524)
  • First seen version: New to this version

Notes

Reinstalled firefox from app store and issue still persists. Attachments: Screenshot

┆Issue is synchronized with this Jira Task

arnavbhate avatar Jan 11 '24 14:01 arnavbhate

From the screenshot, I can see the regular padding on the navigation bar. Have you noticed any change compared with previous versions? If so, can you attach the screenshots. Thanks!

afurlan-firefox avatar Jan 11 '24 20:01 afurlan-firefox

From the screenshot, I can see the regular padding on the navigation bar. Have you noticed any change compared with previous versions? If so, can you attach the screenshots. Thanks!

I don't have any prior screen shots, but compare with the iPad screenshots on the app store. That is what it looked like. In the new version, there is just too much padding above and below the address bar.

arnavbhate avatar Jan 11 '24 21:01 arnavbhate

For this issue, I think it's not only in iPad. I also checked for Mobile, after comparing it App store it seems like there is more padding. I am attaching screenshots below. For the issue LocationHeight=40 in URLBarViewUX in URLBarView class can be cause. I am not sure LocationHeight has been changes recently, or we use specific values for this var. After changing it to higher number it works fine, but please suggest @lmarceau

Appstore Image: image

Current Simulator Image: image

rajparad avatar Feb 12 '24 18:02 rajparad

Did some research and found an old PR from @adudenamedruby that had fixed this 3 years ago. Here's the old issue and PR. The old issue also points to the URL bar being too tall (too much bottom padding). The explanation was that the added height was needed to to accomodate the larger text sizes that a user can set in the iOS accessibility settings. The fix was to make the URL bar height dynamic.

The odd thing is the code to make the URL bar dynamic is no longer in the code base. When I copy the dynamic code from the old PR into my sandbox branch, it solves this issue. So not sure why the code was removed and not sure if I should put it back in.

Couple of screenshots from my sandbox branch with the restored code. Screenshot 2024-05-01 at 4 05 09 PM

tisumi99 avatar May 01 '24 23:05 tisumi99

o wow, I did fix this. Go me! lol

@tisumi99 thanks for looking into this. Before fixing, would you mind looking to see what PR it was removed in, so we can try to understand why it was removed in the first place. It may have been accidental, or intentional.

adudenamedruby avatar May 02 '24 13:05 adudenamedruby

@adudenamedruby I found the PR and Issue that removed the dynamic URL bar code. There was an issue with the on screen keyboard overlapping the bottom part of the URL bar when the bar is set at the bottom. Removing the dynamic code fixed the overlapping issue since having a fixed taller URL bar avoided the overlap. But now we are back at having a too tall URL bar when the bar is set at the top. So I'll restore the dynamic code but only activate it when the URL bar is at the top.

tisumi99 avatar May 03 '24 15:05 tisumi99