Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //modalHeight should get the size of the modal (by id)
- var modalHeight = document.getElementById('id-of-modal').clientHeight;
- // should set the height to equal modalHeight
- document.getElementById('id-of-image').height = modalHeight;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement