dotjay / hashgrid

A little tool that inserts a layout grid in web pages, allows you to hold it in place, and toggle between displaying it in the foreground or background.
https://dotjay.github.io/hashgrid/
Other
446 stars 46 forks source link

Wrong docoument height #14

Open willit0 opened 11 years ago

willit0 commented 11 years ago

I was getting the viewport height instead the html document height.

I was able to get the right html document height by calling hashgrid on window load

For example:

$(window).load(function () { var grid = new hashgrid({ numberOfGrids: 2 }); });

dotjay commented 11 years ago

Thanks… I may switch the call to $(document).ready() to $(window).load()