jquery ui autocomplete positioning wrong

前端 未结 8 881
再見小時候
再見小時候 2020-12-01 06:17

using jquery ui 1.8 trying autocomplete

Everything works apart from that the ui-menu isn\'t positioned under my input element, but rather in the top left corner.

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-01 07:01

    Woohoo. Found the culprit:

    
                
                
                
    

    Don't include jquery.dimensions.js. I assume it's already in jquery-ui.js ... anyway, it fixed my problem.

    For latest jqueryUI you now need to include jquery.ui.position.js

提交回复
热议问题