Created
March 2, 2018 23:42
-
-
Save alpual/b130d395f787e33571f3b943c0e4fb9a 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
var fixHeaderSizes = function(query){ | |
var $vh = $(query); | |
var theheight = $vh.height(); | |
var inlineCss = $vh.attr('style'); | |
$fancyHeader.attr('style', "height: " + theheight + "px !important; " + inlineCss ); | |
} | |
setTimeout(function(){ | |
fixHeaderSizes("#exampleWithVH"); // for example | |
fixHeaderSizes(".secondExampleQueryWithVH"); // for example | |
}, 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment