Closed Bug 356100 Opened 18 years ago Closed 18 years ago

Location/Search split view doesn't enforce min widths during window resize

Categories

(Camino Graveyard :: Toolbars & Menus, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: stuart.morgan+bugzilla, Assigned: stuart.morgan+bugzilla)

References

Details

(Keywords: fixed1.8.1.1)

Attachments

(1 file, 1 obsolete file)

If the window is resized, the URL bar can end up smaller than the intended minimum, and in the extreme case the splitter can actually move so far left it's no longer visible.
Attached patch fix (obsolete) — Splinter Review
Enforces URL field min width on widget resize. Also fixes bug 346137, since I didn't want to wait for that to land to fix this, and the patches can't be separated.
Attachment #241777 - Flags: review?(nick.kreeger)
Comment on attachment 241777 [details] [diff] [review]
fix

+      if (searchBarWidth <= 0.00001)
+        searchBarWidth = kDefaultSearchBarWidth;

Looks good to me, my only suggestion would be to make 0.00001 a constant since you use it in two places.

r=me
Attachment #241777 - Flags: review?(nick.kreeger) → review+
Adds a constant, and makes it larger since I realized the value I was using was borderline questionable for values in the hundreds, and we don't need fine-grained precision.  Also adds a fabsf which should have been there in the first place.
Attachment #241777 - Attachment is obsolete: true
Attachment #241845 - Flags: superreview?(mikepinkerton)
Comment on attachment 241845 [details] [diff] [review]
r=kreeger version

sr=pink
Attachment #241845 - Flags: superreview?(mikepinkerton) → superreview+
Checked in on 1.8branch and trunk.
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: fixed1.8.1
Resolution: --- → FIXED
Keywords: fixed1.8.1.1
Keywords: fixed1.8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: