Minimizing popup & repositioning when content changes
Hi, I’m trying to create a “Minimizable” popup. I was not able to figure out an “out of the box” way to do this, so my solution is to have a “Minimize” and “Maximize” button and hide the close button.
The issue I’m running into is that when I hide the content inside of the popup and display the minimized version, it does not automatically reposition the popup to the bottom of the screen.
Currently, my solution is to manually trigger the window resize event, window.dispatchEvent(new Event('resize'));
but I’m wondering if there is a more elegant way of doing this or if I’m completely missing the ball here and there is already a built in minimizable popup.
Thanks
مشاهده پاسخ های این مطلب
———————————————
این مطلب از سایت انجمن وردپرس گردآوری شده است و کلیه حقوق مطلق به انجمن وردپرس می باشد در صورت مغایرت و یا بروز مشکل اطلاع دهید تا حذف گردد
منبع: انجمن وردپرس