Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Tiny input box › Reply To: Tiny input box
September 11, 2014 at 12:03 pm
#2422
Keymaster
Oh, indeed. I think the problem is, that the resizing is done before the animation of the sidebar is complete, thus the search thinks the sidebar is 0px wide. So, I think a 1-2 second delay on the resize method would solve this:
jQuery(document).ready(function($){
var scope = $;
if (typeof aspjQuery != 'undefined')
scope = aspjQuery;
jQuery('#nks-tab-1').on('click', function(){
setTimeout(function() {
scope(window).resize();
}, 1200);
});
});