Closed Bug 444268 Opened 16 years ago Closed 13 years ago

Text doesn't stay centered when window is made smaller on Mac

Categories

(Firefox :: Address Bar, defect)

x86
macOS
defect
Not set
major

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: mkaply, Unassigned)

References

()

Details

(Keywords: regression)

In the attached testcase on Mac only, if you resize the window smaller, the text does not stay centered. At some point it simply stops.

This works properly on FF2 Mac, and FF3 Windows.

Seems to be a mac only centering problem.

It should continue to center until the window is very small.

I'm marking this major because this is a layout regression on Mac
I'm guessing part of the browser chrome doesn't fit in the window anymore either.  If so, this should probably move to Firefox.
Yep. If you turn off the navigation toolbar, it works.

The problem starts on Mac at the point the URL bar won't shrink anymore.
Component: Layout: Block and Inline → Location Bar and Autocomplete
Product: Core → Firefox
QA Contact: layout.block-and-inline → location.bar
Target Milestone: --- → Firefox 3
Version: 1.9.0 Branch → 3.0 Branch
I can confirm that you don't see this bug's symptoms on Windows (in
FF3).

But I do see them (in FF3) on Linux.  So this isn't just an OS X
problem.
I believe this is a regression caused by the Awesome bar XUL on some platforms.
Both the location bar and search bar toolbar items cause this problem: the center will flex but the curved edges force a minimum width.

The location bar shrinks until the star hits the left curve. The search bar shrinks until the magnifying glass hits its left curve.
But that minimum width shouldn't normally affect the content area, should it?
Depends on: 204743
Target Milestone: Firefox 3 → ---
I agree with comment 6 that the css of places/browser shouldn't affect the content area.  Moving to layout, and hopefully they'll know a better place to put this if it isn't right.
Component: Location Bar and Autocomplete → Layout
Product: Firefox → Core
QA Contact: location.bar → layout
Version: 3.0 Branch → Trunk
It's nothing to do with affecting the inside of the content area.  The problem is that browser.xul and its styles are making the content area the wrong size.  You want to make a content area the same width as the window, but you're making one that's wider.

This bug has happened a whole bunch of times before and I think there's another open duplicate of this as well as a whole bunch of previously-fixed ones.

Next time it's fixed somebody should really write a test.
Component: Layout → Location Bar and Autocomplete
Product: Core → Firefox
QA Contact: layout → location.bar
Another way to see the problem is that if you load a page that has a vertical scrollbar, when you make the window too narrow, the vertical scrollbar itself will go off the edge of what's visible.
Flags: in-testsuite?
this is working much better on FF4
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.