The width attribute of my auto_complete style seems to be ignored, and the dropdown list inherits the width of the entry field instead. Any suggestions? Thanks, Isak --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Mar 14, 4:59 pm, "Isak" <isak.han...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The width attribute of my auto_complete style seems to be ignored, and > the dropdown list inherits the width of the entry field instead. > > Any suggestions? >Solved the issue by adding "setWidth: false" to the options hash of Position.clone() in the baseInitialize function of controls.js. Is the current behavior intended? Every auto-complete style sheet i''ve seen specifies the width, so ignoring it sounds like a bug imo. Unless someone speak up here, I''m filing a bug report/patches against all releases. Thanks, Isak --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
The div''s width that represents the auto-completer is determined based on the width of the input box that the auto-completer is attached to. If you wish to not have the width of the auto-completer div the same as the input box, then you can override that width in your stylesheet with the !important declaration. Since you can turn off this feature with the setWidth option, what is it about the behavior that you dislike? In other words, if you file a bug, what would it be? -justin On 3/15/07, Isak <isak.hansen-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > > > On Mar 14, 4:59 pm, "Isak" <isak.han...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > The width attribute of my auto_complete style seems to be ignored, and > > the dropdown list inherits the width of the entry field instead. > > > > Any suggestions? > > > > Solved the issue by adding "setWidth: false" to the options hash of > Position.clone() in the baseInitialize function of controls.js. > > Is the current behavior intended? Every auto-complete style sheet i''ve > seen specifies the width, so ignoring it sounds like a bug imo. > > > Unless someone speak up here, I''m filing a bug report/patches against > all releases. > > > Thanks, > Isak > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hmm.. Seems like my first reply didn''t get posted. On Mar 16, 2:37 am, "Justin Perkins" <justinperk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The div''s width that represents the auto-completer is determined based > on the width of the input box that the auto-completer is attached to. > > If you wish to not have the width of the auto-completer div the same > as the input box, then you can override that width in your stylesheet > with the !important declaration. >That does the trick, thanks.> Since you can turn off this feature with the setWidth option, what is > it about the behavior that you dislike? In other words, if you file a > bug, what would it be?Sorry if my first post wasn''t too clear. Unless I''m mistaken, setWidth won''t matter to the library, I had to modify prototype.js to add that. As far as I''m concerned, !important solves the issue; perhaps someone could add a doc patch for those of us with weak css knowledge? I figure ticket #4062 could be closed as well. Thanks, Isak> > -justin > > On 3/15/07, Isak <isak.han...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > On Mar 14, 4:59 pm, "Isak" <isak.han...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > The width attribute of my auto_complete style seems to be ignored, and > > > the dropdown list inherits the width of the entry field instead. > > > > Any suggestions? > > > Solved the issue by adding "setWidth: false" to the options hash of > > Position.clone() in the baseInitialize function of controls.js. > > > Is the current behavior intended? Every auto-complete style sheet i''ve > > seen specifies the width, so ignoring it sounds like a bug imo. > > > Unless someone speak up here, I''m filing a bug report/patches against > > all releases. > > > Thanks, > > Isak--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
> Sorry if my first post wasn''t too clear. Unless I''m mistaken, setWidth > won''t matter to the library, I had to modify prototype.js to add that.OK, that makes more sense. I am not familiar with the options so I was assuming you were saying that setWidth was an option. I think it''s a simple enough request to ask for setWidth to be an option in a future release of scriptaculous. -justin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---