reveal icon indicating copy to clipboard operation
reveal copied to clipboard

Modal background doesn't work right on iPad

Open amps211 opened this issue 13 years ago • 2 comments

On iPad, the modal background does not necessarily cover the whole viewport. The fix is to set the modal background height to match the body height when the modal is opened (or when the modal background element is created).

modal.bind('reveal:open', function() {
    modalBG.css('height', $('body').height());
    ...

amps211 avatar May 17 '11 12:05 amps211

Thanks for the workaround. We're actually currently working on making reveal work much better on mobile devices. I'll keep this issue open until we finish.

mkelly12 avatar May 20 '11 23:05 mkelly12

Here's a hack that worked for me.

changed

modalBg = $('<div class="reveal-modal-bg" />').insertAfter(modal);

to

modalBg = $('<div class="reveal-modal-bg" />').insertAfter(modal.parent());

rjyo avatar Nov 19 '11 09:11 rjyo