| Page 1 of 1 | [ 7 posts ] |
|
Hi,
How would I skin ac list to be on top of all element? Some of my elements (<ul> and <li>) are on top of ac list. I tried the styling in my html the classes skinning: .yui3-aclist-item, .yui3-aclist, .yui3-aclist-content{z-index:30;} In Firebug I can see the classes are added and z value is 30. also tried just .yui3-aclist-content{position:inherit;z-index:30;} playing around with different position options other that 'inherit' but no joy. Please assist or give some pointers on skinning ac. |
|
Does any one have a quick tip for me?
|
|
Sorry, missed this one.
The AutoComplete container inherits the stacking context of its parent element. If there are other elements on the page with a higher stacking context than AutoComplete's parent, that could result in those elements appearing above the AutoComplete list. This will be easier to debug if you can share the HTML and CSS in question (or a link to a live site), but in general you should try giving AutoComplete's parent element "position: relative" and a z-index higher than that of any sibling elements. |
|
Looks like the only way to fix this in 3.3.0 is to manually specify a z-index for the AutoComplete list in JS.
Try changing your AutoComplete config to this: Code: var ac = new Y.AutoComplete({ inputNode: '#ac-input', minQueryLength: 3, queryDelimiter: " ", resultFilters: 'phraseMatch', resultHighlighter: 'phraseMatch', source: rdfInst, zIndex: 1 }); I've fixed this bug in git, and the fix will be in 3.4.0. |
|
Thanks, that works like a charm!
|
|
Thanks, that works like a charm!
|
| Page 1 of 1 | [ 7 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group