Reply To: Tiny input box

#2422

Ernest Marcinko
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);
   });
});
Best,
Ernest Marcinko

If you like my products, don't forget to rate them on codecanyon :)