Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
I spent some time getting the ctools modals to work better with a fixed navbar. On small screens or with a large navbar, the modal can slip behind the nav. I've updated the JS to look for body padding-top and to adjust accordingly by adding the same top-padding to the modal container and reducing the modal's height by the same amount.
While I was at it, I changed the the .modal-body to a max-height instead of height. Now the modal only takes up the room it needs and we don't have that ugly vertical whitespace.
Comment | File | Size | Author |
---|---|---|---|
#2 | bootstrap-modal-nav-offset-jslint-2404405-2.patch | 4.57 KB | frankcarey |
bootstrap-modal-nav-offset.patch | 1.86 KB | frankcarey | |
Comments
Comment #1
frankcarey CreditAttribution: frankcarey commentedComment #2
frankcarey CreditAttribution: frankcarey commentedThis patch is the JShint cleanup of the code.
Comment #3
frankcarey CreditAttribution: frankcarey commentedComment #4
markhalliwell