Closed Bug 347400 Opened 18 years ago Closed 18 years ago

search button disconnected from search field

Categories

(Firefox :: Toolbars and Customization, defect, P1)

2.0 Branch
PowerPC
macOS
defect

Tracking

()

VERIFIED FIXED
Firefox 2 beta2

People

(Reporter: asa, Assigned: pamg.bugs)

References

Details

(Keywords: verified1.8.1, Whiteboard: [Fx2 theme change])

Attachments

(9 files, 2 obsolete files)

The search button is disconnected from the search field in the primary toolbar. this is fine on windows but broken on mac.
Assignee: nobody → mconnor
*** Bug 347787 has been marked as a duplicate of this bug. ***
Pam, can you take a look here?
Assignee: mconnor → pamg.bugs
Flags: blocking-firefox2+
Whiteboard: [Fx2 theme change]
A similar space, I presume extraneous, appears between the location bar and its Go button.
no the go button is only slightly disconnected from the location bar. I believe there is a bug on that as well.
that's bug 347405. 
Priority: -- → P1
Target Milestone: --- → Firefox 2 beta2
This happens on Linux (Gentoo gcc 4.1.1 glibc 2.4 cairo 1.2) too.

http://www.vladsharp.com/images/work/search_button_mouseover.png
Attached image Glow background for Mac
This will need to be added as
browser/themes/pinstripe/browser/Search-provider-bkgnd.png

In addition, the following images in browser/themes/pinstripe/browser/ are no longer needed and will be removed:
Search.png
Search-add-engines.png
search-bar-background-left.png
search-bar-background-right.png

Finally, the image currently named Search-add-engines.png will be re-added as Search-go.png.
This patch rolls up fixes for this bug as well as bug 347961.
Attachment #233164 - Flags: superreview?(mconnor)
Attachment #233164 - Flags: review?(jgoldman)
Jay, I'd appreciate it if you could take a look at the CSS parts of this patch.  In particular, I'm not at all familiar with what's needed for RTL, nor do I know how to test that situation.
pam, the way I have been testing RTL is by adding this to my userChrome.css file:

:root { direction : rtl }

(cc'ing asaf and simon, kings of RTL)
(In reply to comment #13)
> pam, the way I have been testing RTL is by adding this to my userChrome.css
> file:
> 
> :root { direction : rtl }

To test something like this which depends on chromedir, you also need to set &locale.dir; to rtl. We need to find a way to do that at run-time, or create an rtl pseudo-l10n.
Comment on attachment 233164 [details] [diff] [review]
Fixes searchbar appearance on Windows and Mac

Scratch this.  RTL-enabled patch coming soon.
Attachment #233164 - Attachment is obsolete: true
Attachment #233164 - Flags: superreview?(mconnor)
Attachment #233164 - Flags: review?(jgoldman)
This is off topic - but what is RTL?
Right-to-left, in contrast to LTR as a direction for text.
Ok, that makes more sense than "Real Time Linking" - thank you.
Attached image New Search-rtl.png for winstripe (obsolete) —
This image has the four individual frames flipped rather than the whole thing, to simplify the CSS rules.
To summarize, in addition to applying this patch, the following changes will be needed:

In pinstripe/browser/:
  add Search-provider-bkgnd.png
  add Search-provider-bkgnd-rtl.png
  add Search-go-rtl.png
  update Search-go.png with what's currently Search-add-engines.png
  remove Search.png
  remove Search-add-engines.png
  remove search-bar-background-left.png
  remove search-bar-background-right.png
  remove Search-bar.png

In winstripe/browser/:
  update Search-rtl.png
  remove Search-add-engines.png
  remove Search-bar.png
Attachment #233253 - Flags: review?
Attachment #233253 - Flags: review? → review?(mconnor)
Attachment #233160 - Attachment description: Fixed searchboxes on Mac and Windows → Screenshot of fix on Mac and Windows
Comment on attachment 233253 [details] [diff] [review]
Fixed searchboxes, including RTL

>   <binding id="searchbar"
>            extends="chrome://browser/content/search/search.xml#searchbar-base">
>     <content>
>       <xul:stringbundle src="chrome://browser/locale/search.properties"
>                         anonid="searchbar-stringbundle"/>
>       <xul:box class="searchbar-left" flex="1">
>         <xul:box class="searchbar-right" flex="1">

*snip*

why do we have nested boxes like this?  seems like its just cruft, and shouldn't be at _all_ necessary.

>         </xul:box>
>       </xul:box>
>     </content>


I'm not completely sure about this from a UI perspective, but trying to keep the button inside of the textbox is a pain, so I'm inclined to try it for beta2.

Going to approve as well so we can get on branch ASAP and get more feedback.
Attachment #233253 - Flags: review?(mconnor)
Attachment #233253 - Flags: review+
Attachment #233253 - Flags: approval1.8.1+
(In reply to comment #24)
> why do we have nested boxes like this?  seems like its just cruft, and
> shouldn't be at _all_ necessary.

It's needed for the Mac search box styling, you reviewed the patch to add it in bug 337292 :)
(In reply to comment #24)
 
> why do we have nested boxes like this?  seems like its just cruft, and
> shouldn't be at _all_ necessary.

Like Gavin said, it used to be used for the images forming the ends of the Mac searchbar.  It's not needed anymore, since the ends are occupied by the two buttons now.  I left it in with the idea that it'd let a theme author play around with those parts, but I don't know anything about theme writing, so perhaps that's pointless?
Hey Pam, you weren't on IRC, so I went ahead and landed this on the 1.8 branch since we're trying to do as much of a run as we can tonight on getting new theme pieces landed.  As gavin pointed out, the nested boxes are just evil Mac pain, so we'll live for now.

Thanks!
Keywords: fixed1.8.1
I notice that winstripe's Search.png got updated in tonight's landing.  I've checked in this new Search-rtl.png to match.

Eventually we'll want to clear out the unused images, too, but they're not in the jar.mn, so they're no real harm.
Attachment #233249 - Attachment is obsolete: true
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: