-
-
Save usmaanalii/81342250983c97e3da7a15b0718ff551 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const navCoords = nav.getBoundingClientRect(); | |
const dropdownCoords = dropdown.getBoundingClientRect(); | |
const coords = { | |
height: dropdownCoords.height, | |
width: dropdownCoords.width, | |
top: dropdownCoords.top - navCoords.top, | |
left: dropdownCoords.left - navCoords.left | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment