I am using a custom ui-dialog
modal. This is working fine on desktop and android device. But ON IOS device it's occurring issue once virtual keypad open. Usually, it's pushed the content top once keyboard shows. I have used position: absolute;
and also tried with relative
but still, it does not work. Can anybody help me with this..
Try
<script>
if( navigator.userAgent.match(/iPhone|iPad|iPod/i) ) {
var s = document.createElement('style'), styleSheet;
document.head.appendChild(s);
styleSheet = s.sheet;
styleSheet.insertRule(".modal { position:absolute; bottom:auto; }", 0);
}
</script>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.