Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions hashgrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ var hashgrid = function(set) {
overlay.append(gridLines);

// vertical grid
overlay.append($('<div class="vert-container"></div>'));
overlay.append($('<div class="vert-container"><div class="vert-inner"></div></div>'));
overlayVert = overlay.children('.vert-container');
gridWidth = overlay.width();
overlayVert.css({width: gridWidth, position: 'absolute', top: 0});
Expand All @@ -179,8 +179,8 @@ var hashgrid = function(set) {
for (i = 0; i < 30; i++) {
gridLines += '<div class="vert">&nbsp;</div>';
}
overlayVert.append(gridLines);
overlayVert.children()
overlayVert.children('.vert-inner').append(gridLines);
overlayVert.children('.vert-inner').children()
.height(pageHeight)
.css({ display: 'inline-block' });

Expand Down Expand Up @@ -251,7 +251,7 @@ var hashgrid = function(set) {
overlay.show();
overlayVert.css({width: overlay.width()});
// hide any vertical blocks that aren't at the top of the viewport
overlayVert.children('.vert').each(function () {
overlayVert.find('.vert').each(function () {
var vCol = $(this);
vCol.css('display','inline-block');
if (vCol.offset().top > vCol.parent().offset().top) {
Expand Down