Closed Bug 336947 Opened 18 years ago Closed 18 years ago

Maximum width of location bar/search field is fixed at 2560 pixels

Categories

(Camino Graveyard :: Toolbars & Menus, defect)

PowerPC
macOS
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bugzilla-graveyard, Assigned: froodian)

Details

(Keywords: fixed1.8.1, Whiteboard: [good first bug])

Attachments

(1 file)

We should measure the width of all available displays and use that instead of hard-coding a max width value. The relevant code is on line 1238 of BrowserWindowController.mm.
Whiteboard: [good first bug]
We should hard-code it, but it should be set to some insanely huge number (which I think was the intention). Maybe something like FLT_MAX.
OK.  Since I still can't build (can't reinstall OS X until school is over), I haven't tested this, so uploading a patch may be a no-no in this situation, but it's so ridonkulous that I couldn't resist just doing it.  If this was notcool of me, somebody else can feel free to take this, and sorry for the bug/patchspam. :p
Assignee: nobody → stridey
Status: NEW → ASSIGNED
Attachment #221201 - Flags: review?
Comment on attachment 221201 [details] [diff] [review]
Patch to make max FLT_MAX

r,sr,a=me :-p

Seriously, though, r=me, pending a statement from pink or smfr why we chose 2560 in the first place.

cl
Attachment #221201 - Flags: review? → review?(bugzilla)
Comment on attachment 221201 [details] [diff] [review]
Patch to make max FLT_MAX

Oops. Forgot to set the flag.

Oh, and it's "redonkulous". The "e" is important.

cl
Attachment #221201 - Flags: review?(bugzilla) → review+
Comment on attachment 221201 [details] [diff] [review]
Patch to make max FLT_MAX

Mike, can you sr this?  Assuming that your original intention for the max was indeed just to be 'wicked big', all it'll need is a thumbs-up.
Attachment #221201 - Flags: superreview?(mikepinkerton)
That value is from hyatt's original BWC code, so the reason for that particular magic number may forever remain a mystery.
Well, 2560 jumped out at me as the max resolution of a Cinema Display, which is probably where it came from, but methinks Hyatt must've figured no one would ever have a browser window big enough to span two of them ;)

cl
Comment on attachment 221201 [details] [diff] [review]
Patch to make max FLT_MAX

sr=pink
Attachment #221201 - Flags: superreview?(mikepinkerton) → superreview+
Whiteboard: [good first bug] → [good first bug][needs checkin]
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Whiteboard: [good first bug][needs checkin] → [good first bug]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: