Created
January 8, 2018 02:04
-
-
Save jimkang/3de4ed16ae4bb85d116330856d6d8c7b to your computer and use it in GitHub Desktop.
Set svg size to window size
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 width = +window.innerWidth; | |
var height = +window.innerHeight; | |
svg.attr('width', width); | |
svg.attr('height', height); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment