javascript - jQuery UI widget autocomplete issue with fixed div parent -
i'm tryng use https://github.com/aehlke/tag-it script, no problems, can add,remove tags , autocomplete function work good. source:
<script type="text/javascript"> $(document).ready(function() { $("#addtags").tagit({ fieldname: "task_tags", availabletags: ["c++", "java", "php", "javascript", "ruby", "python", "c"], allowspaces: true }); //$("#addtags").tagit(); }); </script> <div class="panel"> <div class="form-group"> <ul id="addtags"> <li>tag1</li> </ul> </div> </div>
the problem start when add css:
<style> .panel { position: fixed; top: 30px; left: 90px; } </style>
the div not receive right information on position , remains fixed @ top left.
i solved, problem in css set fixed position body , block window positions jquery ui.
Comments
Post a Comment