Closed Bug 258679 Opened 20 years ago Closed 18 years ago

Search bar on toolbar no longer resizes with browser width

Categories

(Firefox :: Toolbars and Customization, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: 32768, Assigned: mozilla)

References

Details

(Keywords: fixed1.8.1, regression)

Attachments

(1 file, 1 obsolete file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040909 Firefox/0.10
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040909 Firefox/0.10

The search field on the toolbar (google) no longer resizes to a reasonable size
when the browser window changes, and it is not possible to modify the size in
userChrome.css.

This is a regression in today's build (20040909).

Previously the search field resized nicely.

Reproducible: Always
Steps to Reproduce:
1. Open Firefox
Actual Results:  
Search field very small, only fits two words.

Expected Results:  
Search field around 25% of browser width.

It's not possible to modify this with the following setting in userChrome either:

#search-container {
-moz-box-flex: 400 !important;
}
see bug 258343 comment 3 and comment 8, though I haven't seen a post on mz yet.
Assignee: bugs → p_ch
I did some digging and found this solution, not sure if its necessarily the best
way to do it, but it seems to work for most people.

/* Make the Search box flex wider */
#search-container {
   -moz-box-flex: 200 !important;
}

#searchbar {
   -moz-box-flex: 200 !important;
}
*** Bug 258730 has been marked as a duplicate of this bug. ***
This could also probably be fixed (i.e. reverted to the previous behaviour) by
adding a flex="1" attribute onto the searchbar element in the chrome. I've only
tested it using the dom inspector to add the attribute and am not really up to
the task of making a patch for this, perhaps someone else could oblige?
This problem is still apparent in 1.0PR.
isn't this bug invalid?
the default themes use a constant size for the searchbar.
I guess the themes should be updated, by looking at searchbar.css and by
removing searchbar references in browser.css
I wouldn't think that it is invalid because we have allowed resizing the search
bar since at least Phoenix 0.5.  Also, in many cases, the search bar is too
small to display long queries.  Also, for people who have moved the location bar
to another toolbar, expanding the search bar is a good use of the added space on
the toolbar.

Flexibility was the whole point of being able to customize the toolbars in the
first place.  We shouldn't make it less flexible.

Also, the location bar expands to occupy whatever free space is available on its
toolbar, so the search bar should at least have the possibility to expand, even
if only via userChrome.css.
Flags: blocking-aviary1.0?
Keywords: regression
Flags: blocking-aviary1.0?
*** Bug 261483 has been marked as a duplicate of this bug. ***
I created the image to emphasize what I think 
is the problem here.  There's no "resize control"
present, as is in Safari.  Without it, entering
long search strings is error-prone and tedious.
IMHO, this bug is a DUPLICATE of bug 205011.
Since we already have the adjusted information for the userChrome.css file to
allow resizing of the search bar are people wanting the ability to resize on the
fly built in.

http://dragtotab.mozdev.org/resizesearchbox/

Like what that extension provides. In which case this bug should be marked as an
enhancement bug.
(In reply to comment #12)
> Since we already have the adjusted information for the userChrome.css file to
> allow resizing of the search bar are people wanting the ability to resize on the
> fly built in.

> In which case this bug should be marked as an
> enhancement bug.

The bug's intention is to point out that a previous feature no longer works. 
The bar used to resize to a percentage of the browser width; now it doesn't do
it anymore (without editing userChrome.css).

> IMHO, this bug is a DUPLICATE of bug 205011.

It isn't, though that bug is still worthwhile it isn't connected to this one. 
This one concerns whether the width of the search bar will be determined as a
percentage of the browser width and therefore resize accoding to the size of the
browser window, or if it is a fixed size and only the location bar should
resize.  For a short time during aviary development, it was the former and I
think it was better that way.

Here's what you need to add to userChrome.css to reproduce that behaviour now:

#search-container {
   -moz-box-flex: 20% !important;
}

#searchbar {
   -moz-box-flex: 20% !important;
}
Summary: Search bar on toolbar no longer resizes → Search bar on toolbar no longer resizes with browser width
Flags: blocking-aviary1.5?
Flags: blocking1.8b4?
Flags: blocking1.8b4?
Flags: blocking1.8b4-
Flags: blocking-aviary1.5?
Flags: blocking-aviary1.5-
QA Contact: bugzilla → toolbars
Assignee: p_ch → nobody
OS: Windows XP → All
Hardware: PC → All
*** Bug 329662 has been marked as a duplicate of this bug. ***
Blocks: 335435
Comment on attachment 162579 [details]
The circled region and the dot show where a resize control should be located

Obsoleting irrelevant screenshot
Attachment #162579 - Attachment is obsolete: true
Assignee: nobody → joe
Status: NEW → ASSIGNED
Attachment #221312 - Flags: review?(gavin.sharp)
Comment on attachment 221312 [details] [diff] [review]
Put proportional flex back into searchbar

r=gavin
Attachment #221312 - Flags: review?(gavin.sharp) → review+
Attachment #221312 - Flags: superreview?(bugs)
Comment on attachment 221312 [details] [diff] [review]
Put proportional flex back into searchbar

sr=ben@mozilla.org
Attachment #221312 - Flags: superreview?(bugs) → superreview+
Comment on attachment 221312 [details] [diff] [review]
Put proportional flex back into searchbar

woo, ship it!
Attachment #221312 - Flags: approval-branch-1.8.1+
Landed on branch, waiting for trunk to reopen.
Keywords: fixed1.8.1
screen shot : http://img302.imageshack.us/img302/8486/searchbox11qr.jpg

invisible locationbar is dangerous, if it is a phishing/scam site, I think.
what do you think?
(In reply to comment #21)
> screen shot : http://img302.imageshack.us/img302/8486/searchbox11qr.jpg
> 
> invisible locationbar is dangerous, if it is a phishing/scam site, I think.
> what do you think?

Thanks for pointing that out--though since the window-shrinking behavior is basically the same as Firefox 1.5's, I don't think it's entirely relevant to this discussion.  If you're still concerned, please open a new bug on the subject.
Marking this resolved, since it's now landed on branch & trunk.
Status: ASSIGNED → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a1) Gecko/20060512 Minefield/3.0a1 ID:2006051208 [cairo]

http://img142.imageshack.us/img142/1149/ff20060512019cs.jpg
above:Minefield
below:Bone Echo
(1280*960 monitor)

search box on Minefield is too wide/long.
Please shorten. or make it same as Bon Echo.
(In reply to comment #24)
> search box on Minefield is too wide/long.
> Please shorten. or make it same as Bon Echo.

Pal, you'll be able to set it to whatever size you want once 205011 lands.
No longer depends on: 348779
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: