Skip to main content

Search and Top Navigation

#8248 closed bug (worksforme)

Opened April 10, 2012 05:27PM UTC

Closed April 10, 2012 05:53PM UTC

Last modified April 10, 2012 06:26PM UTC

Width of Second Autocomplete on Page Defaults to Zero in Chrome and IE to scott.gonzalez

Reported by: Nathan_SF Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.autocomplete Version: 1.8.18
Keywords: Cc:
Blocked by: Blocking:
Description

When I only place one autocomplete input on a page the width is fine in all browsers.

I recently created a page with a second autocomplete, and it works fine in Firefox 11.0. However, in Chrome 18.0, IE 8, and IE 9 the second autocomplete defaults to a width of zero. Even if I set the min-width property via css, it's overridden with element.style {width: 0px;}.

On one page, I have 3 autocomplete input fields. For all browsers (including FF 11.0), the third input has a width set to zero which I have not been able to override. I've tried forcing the CSS with jquery with

$('#uniqueID > input.ui-autocomplete-input').css('width', '300px')

and it's still overridden by element.style{width: 0px;}.

I'm using latest version of jquery 1.7.1, and latest jquery UI 1.8.18.

Attachments (0)
Change History (6)

Changed April 10, 2012 05:53PM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

Changed April 10, 2012 06:10PM UTC by Nathan_SF comment:2

_comment0: The link does not address the issue, as the link only has one autocomplete input on the page. I have many pages like this, works in all browsers. \ \ Please place a second autocomplete input on the same page, and test that scenario. \ \ Thanks.1334081677702060

Changed April 10, 2012 06:12PM UTC by scottgonzalez comment:3

cc: → scott.gonzalez
keywords: → scott.gonzalez
reporter: Nathan_SFscott.gonzalez
summary: Width of Second Autocomplete on Page Defaults to Zero in Chrome and IEscott.gonzalez

There are, in fact, two autocompletes on that page.

Changed April 10, 2012 06:14PM UTC by scottgonzalez comment:4

cc: scott.gonzalez
keywords: scott.gonzalez
reporter: scott.gonzalezNathan_SF
summary: scott.gonzalezWidth of Second Autocomplete on Page Defaults to Zero in Chrome and IE to scott.gonzalez

Whoa, I think 1Password just freaked out and I wasn't even using it.

Changed April 10, 2012 06:15PM UTC by Nathan_SF comment:5

Replying to [comment:3 scott.gonzalez]:

There are, in fact, two autocompletes on that page.

You are correct, my mistake. We are using select boxes, not input fields. Can you test that scenario?

Thanks.

Changed April 10, 2012 06:26PM UTC by Nathan_SF comment:6

It's an issue with combobox, not autosuggest. My mistake.