Support » Plugin: Advanced Woo Search » AWS form in a modal

  • Hello,

    I’m currently trying to place 2 AWS search forms on a single page – one for desktops (placed in website header), another one for mobile devices (in a modal).

    The desktop one is working fine, but the one in a modal is not working correctly. The positioning for .aws-search-results in modal form is not calculated correctly and the form is placed offscreen, (!) but this happens only sometimes. So, sometimes if I use modal search form, the .aws-search-results element is placed offscreen, but sometimes it’s positioned correctly right below the form.

    When I resize screen, the offcanvas placed form is repositioned correctly.

    So, is there any solution for this other than triggering ‘resize’ event via JavaScript when .aws-search-result is shown?

    • This topic was modified 4 years, 2 months ago by fakemeta.
    • This topic was modified 4 years, 2 months ago by fakemeta.
Viewing 1 replies (of 1 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hello,

    Plugin has built-in method for this.

    Its called ‘relayout’ and you can call it anytime. Its looks like

    $('.aws-container').aws_search('relayout');

Viewing 1 replies (of 1 total)
  • The topic ‘AWS form in a modal’ is closed to new replies.