css - Controlling jQuery-ui Autocomplete's dynamic positioning -
so i'm trying understand why jquery-ui's autocomplete, appendto used attach results dropdown div, still dynamically positions results absolute positioning. this:
top: 38px; left: 8.5px; width: 251px;
creating issues like:
can turn off dynamic positioning? full control on ui fluid responsivity , custom styling. cannot find answer online.
update: seems each widget has different rules, correct? figured out responsive width jquery-ui dialog popup by
$("#dialog").dialog({ width: auto });
& in stylesheet, applying max-width wrapping dialog class.
.ui-dialog{ max-width: 720px; }
however top , left still mystery of yet.
you can change css used either editing jquery ui css file, or else overriding in own css, such as:
ul.ui-autocomplete { width: 250px !important; max-height: 300px; overflow-y: scroll; overflow-x: none; }
Comments
Post a Comment