Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make popup element that overflows into modal element not appear cut off (semantic ui)

I'm working on a calendar picker, using Semantic UI. I'm using their modal module, but only half the popup is visible, and the rest overflows into the modal div itself. I want it to show up above the content. I know this is possible with javascript, but I'd like to avoid that.

Any ideas? I've tried adjusting the z-index, but doesn't work because it's embedded into the modal. Thanks so much. Please see below:

enter image description here

like image 660
megamaiku Avatar asked Dec 31 '25 19:12

megamaiku


1 Answers

I guess you need this, like document says: https://semantic-ui.com/modules/popup.html#/settings set this attibute to false -> movePopup: false

$('#button_event_trigger').popup({
                popup: $('.custom.popup'),
                movePopup: false, //this here
                on: 'click'
            });

In my case, I had a button inside a sidebar, that needs trigger the popup, then popup appears inside the container with overflow hidden, and css z-index was not working. With this atributte movePopup: false now popup semantic-ui is over the top from other elements;

follow my anwser here: https://stackoverflow.com/a/62688669/4530242

like image 78
Eduardo Paz Avatar answered Jan 02 '26 10:01

Eduardo Paz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!