I am using the yii framework and am testing the CJuiAutoComplete feature which uses jQuery UI’s Autocomplete.
If I use version 1.6.1 which shipped with my version of yii the Autocomplete field works perfectly fine. However, if I switch to jQuery 1.8.0 the rendering of the list containing the options to choose from doesn’t seem right. I observed that running 1.6.1 the list gets set a top and left value within the style parameter. These values however are zero if running 1.8.0.
Did anyone else experience this? What would be a good way of fixing this?
I guess I could manually set these values but would prefer jQuery to handle this 🙂
Please let me know if you need to see any code.
I am using the yii framework and am testing the CJuiAutoComplete feature which uses
Share
Found it, with ui 1.8.2+ you need to include the following UI files:
UI Core,UI Widget, andUI PositionTo include them in yii, simple call them using CClientScript:
Not perfect, as I’d assume Yii should include them by default, but it does work.
Thanks to Chris for his answer here: jquery ui autocomplete positioning wrong