Closed
Bug 1126781
Opened 9 years ago
Closed 9 years ago
browser-search-autocomplete-result-popup's popupshowing handler shouldn't clobber the popup's style attribute
Categories
(Firefox :: Search, defect)
Firefox
Search
Tracking
()
RESOLVED
FIXED
Firefox 38
People
(Reporter: dao, Assigned: gioyik, Mentored)
Details
(Whiteboard: [good first bug][lang=js])
Attachments
(1 file)
1.29 KB,
patch
|
dao
:
review+
|
Details | Diff | Splinter Review |
browser-search-autocomplete-result-popup's popupshowing handler sets the min-width on the popup like this: panel.setAttribute("style", "min-width: " + minWidth + "px"); (http://hg.mozilla.org/mozilla-central/annotate/b2b10231606b/browser/base/content/urlbarBindings.xml#l1176) Instead, it should set panel.style.minWidth directly.
Assignee | ||
Comment 1•9 years ago
|
||
The solution could be: panel.style.minWidth(minWidth); or should I add the "px" too? Something like: panel.style.minWidth(minWidth + "px");
Flags: needinfo?(dao)
Reporter | ||
Comment 2•9 years ago
|
||
minWidth isn't a function, it's a property that needs to be set like foo.minWidth = ...; And yes, "px" needs to be added.
Flags: needinfo?(dao)
Assignee | ||
Comment 3•9 years ago
|
||
So, the correct way could be: panel.minWidth = minWidth + "px"; I ask before send a patch to be sure. :)
Flags: needinfo?(dao)
Reporter | ||
Comment 6•9 years ago
|
||
Comment on attachment 8556817 [details] [diff] [review] 1126781.patch Thanks!
Attachment #8556817 -
Flags: review?(dao) → review+
Reporter | ||
Comment 7•9 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/93a250d4877c
Assignee: nobody → gioyik
Comment 8•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/93a250d4877c
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 38
You need to log in
before you can comment on or make changes to this bug.
Description
•