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
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); }); });Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
![](https://wp-dreams.com/assets/envato/comment-button-knowledgebase.png)
![](https://wp-dreams.com/assets/envato/comment-button-support.png)
![](https://wp-dreams.com/assets/envato/comment-button-facebook.png)
![](https://wp-dreams.com/assets/envato/comment-button-twitter.png)