Skip to content

Commit

Permalink
scope resize event #6
Browse files Browse the repository at this point in the history
  • Loading branch information
brunjo committed Mar 11, 2014
1 parent e76943d commit 879001d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions jquery.row-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
layout(this[0], options);

if(options.resize) {
$(window).on('resize', {container: this[0]}, function(event) {
$(window).on('resize.rowGrid', {container: this[0]}, function(event) {
layout(event.data.container, options);
});
}
Expand Down Expand Up @@ -78,7 +78,7 @@
if(rowElemIndex === 0) {
rowElems[rowElemIndex].className += ' ' + options.lastRowClass;
}
rowElems[rowElemIndex].style.marginRight = (rowElemIndex < rowElems.length - 1)?options.minMargin+"px" : 0;
rowElems[rowElemIndex].style.marginRight = (rowElemIndex < rowElems.length - 1)?options.minMargin+'px' : 0;
}
}

Expand Down
2 changes: 1 addition & 1 deletion jquery.row-grid.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 879001d

Please sign in to comment.