You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I am implementing your widget in a project I am working, and it is very useful, thank! But I figured out that when the "searchField" option is set to false, the height of both headers is set to zero.
The text was updated successfully, but these errors were encountered:
This seems to be caused by the _updateHeaders method not being called before _resize is invoked. I worked around it locally by inserting a second call to _resize in refresh like this:
refresh: function(callback){this._resize();// just make sure we display the widget right without delayasyncFunction(function(){this.optionCache.cleanup();varopt,options=this.element[0].childNodes;for(vari=0,l1=options.length;i<l1;i++){opt=options[i];if(opt.nodeType===1){if(opt.tagName.toUpperCase()==='OPTGROUP'){varoptGroup=$(opt).data('option-group')||(PRE_OPTGROUP+(this.optionGroupIndex++));vargrpOptions=opt.childNodes;this.optionCache.prepareGroup($(opt),optGroup);for(varj=0,l2=grpOptions.length;j<l2;j++){opt=grpOptions[j];if(opt.nodeType===1){this.optionCache.prepareOption($(opt),optGroup);}}}else{this.optionCache.prepareOption($(opt));// add to default group}}}this.optionCache.reIndex();// need to ensure the widget is correctly sized again, the header might have changedthis._resize();if(this._searchField&&this._searchField.is(':visible')){this._search(null,true);}if(callback)callback();},10,this);}
Not sure this is the best way of solving it, but at least it works for me.
Hello,
I am implementing your widget in a project I am working, and it is very useful, thank! But I figured out that when the "searchField" option is set to false, the height of both headers is set to zero.
The text was updated successfully, but these errors were encountered: