I was trying to use remodal together with pickadate so I can create a date-picker and time-picker from within the modal. On first trial I found out the datepicker would be hidden by the remodal, as shown below.
To overcome this issue I created a .full-screen
class for my remodal.
.remodal {
&.full-screen {
max-width: none;
height: 100%;
width: 100%;
margin: 0 auto;
}
}
It then works perfectly fine in Chrome, as shown:
Then I get to test the site on my iOS, and I found out the overlay is messed. I think it got sticked to the bottom of the active input element. As shown in both iOS safari and iOS chrome:
Normally I would then open my Safari in MacOSX and try to fix the CSS. However, when the same page is being loaded in Safari, there is a strange serious performance hit:
and the result is as below:
If you want to try, I have temporarily open the link here, click on the green action button and the modal should load. (try it on chrome first, then safari.) and you will notice the difference.
It looks like you are using Safari 6 or some such slightly older version? I don't have that version available at the moment, but I do believe I have found fixes for a few of your troubles.
.remodal-overlay, .remodal-wrapper
you use
-webkit-transform:translateZ(0px)
, remove that.body.remodal-is-active .remodal
remove -webkit-transform: scale(1);
.remodal.full-screen
set height
to 100vh
and width
to 100vw
.remodal
remove -webkit-transform: scale(0.95);
, also remove -webkit-transition: -webkit-transform 0.2s ease-out, opacity 0.2s ease-out;
By now your positioning should be better. But some performance issues still linger.
Your CSS and JS files are concatenated making it a bit hard to properly walk through what is happening, but I do notice a few things you might want to look into:
legacy.js
for pickadate.js
?If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With