From c8d6e05044e3f84f7413cf17e85d7446d852a34c Mon Sep 17 00:00:00 2001 From: Greg Brown Date: Tue, 25 Aug 2015 16:48:27 +1200 Subject: [PATCH 1/2] Add an element to facilitate fluid grids --- hashgrid.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hashgrid.js b/hashgrid.js index 043b55f..ad49896 100644 --- a/hashgrid.js +++ b/hashgrid.js @@ -167,7 +167,7 @@ var hashgrid = function(set) { overlay.append(gridLines); // vertical grid - overlay.append($('
')); + overlay.append($('
')); overlayVert = overlay.children('.vert-container'); gridWidth = overlay.width(); overlayVert.css({width: gridWidth, position: 'absolute', top: 0}); @@ -179,8 +179,8 @@ var hashgrid = function(set) { for (i = 0; i < 30; i++) { gridLines += '
 
'; } - overlayVert.append(gridLines); - overlayVert.children() + overlayVert.children('.vert-inner').append(gridLines); + overlayVert.children('.vert-inner').children() .height(pageHeight) .css({ display: 'inline-block' }); From 3f2d9d8c7a638b38837307be1e68c6961bb21d34 Mon Sep 17 00:00:00 2001 From: Greg Brown Date: Tue, 25 Aug 2015 16:51:35 +1200 Subject: [PATCH 2/2] and one that I missed --- hashgrid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hashgrid.js b/hashgrid.js index ad49896..bf4292b 100644 --- a/hashgrid.js +++ b/hashgrid.js @@ -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) {