Closed Bug 466717 Opened 16 years ago Closed 16 years ago

avoid using a <panel> as our autocomplete popup

Categories

(Firefox for Android Graveyard :: General, defect, P2)

defect

Tracking

(Not tracked)

VERIFIED FIXED
fennec1.0a2

People

(Reporter: Gavin, Assigned: Gavin)

References

Details

Attachments

(1 file)

We can reimplement nsIAutocompletePopup without an actual <panel>, to avoid using an extra native window.
hurray
Assignee: nobody → gavin.sharp
Target Milestone: --- → Fennec A2
Flags: blocking-fennec1.0+
Priority: -- → P2
Attached patch patchSplinter Review
This implements basic autocomplete functionality. Text highlighting isn't implemented yet, but wanted to get this reviewed first and implement the text selection next. Current Issues: - hardcoded number of entries (7) - no favicon/star icon styling, or text highlighting
Attachment #352023 - Flags: review?(mark.finkle)
Comment on attachment 352023 [details] [diff] [review] patch >diff --git a/chrome/content/browser-ui.js b/chrome/content/browser-ui.js >+ var toolbarH = document.getElementById("toolbar-main").boxObject.height; > var popup = document.getElementById("popup_autocomplete"); >- popup.height = containerH - toolbarH; >+ popup.height = window.innerHeight - toolbarH; can you add the popup.width here too? >diff --git a/chrome/content/browser.xul b/chrome/content/browser.xul >+ <vbox id="popup_autocomplete" style="-moz-stack-sizing: ignore;" width="800" height="420" top="60" left="0" constraint="ignore-x,vp-relative"> >+ <hbox id="autocomplete_navbuttons" align="center" flex="1" >+ oncommand="BrowserUI.doButtonSearch(event.target);"> >+ <image class="tool-search"/> >+ </hbox> >+ </vbox> Remove the hardcoded width and height? We set those in BrowserUI._sizeControls
Attachment #352023 - Flags: review?(mark.finkle) → review+
With those comments addressed: https://hg.mozilla.org/mobile-browser/rev/2be90c4fb7b6 Filed bug 468657 for match highlighting.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
verified FIXED on builds: Mozilla/5.0 (Windows; U; WindowsCE 5.2; en-US; rv:1.9.3a1pre) Gecko/20090818 Fennec/1.0a3pre and Mozilla/5.0 (X11; U; Linux armv6l; en-US; rv:1.9.3a1pre) Gecko/20090821 Fennec/1.0b3pre and Mozilla/5.0 (Macintosh; U; Intel Mac OSX 10.5; en-US; rv:1.9.2a2pre) Gecko/20090808 Fennec/1.0b3pre
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: