Skip to content

Commit

Permalink
fix bug #13
Browse files Browse the repository at this point in the history
  • Loading branch information
brunjo committed Nov 2, 2014
1 parent 772b363 commit a68d0c4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rowGrid.js",
"description": "A small, lightweight jQuery plugin for placing items in straight rows",
"version": "1.0.1",
"version": "1.0.2",
"license": "MIT",
"authors": [
{ "name": "Bruno Joseph", "email": "[email protected]"," homepage": "http://brunojoseph.com" }
Expand Down
5 changes: 4 additions & 1 deletion jquery.row-grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@
if(rowElemIndex === 0) {
rowElems[rowElemIndex].className += ' ' + options.lastRowClass;
}
rowElems[rowElemIndex].style.cssText = 'margin-right:' + ((rowElemIndex < rowElems.length - 1)?options.minMargin+'px' : 0);
rowElems[rowElemIndex].style.cssText =
'width: ' + itemAttrs[index+parseInt(rowElemIndex)-rowElems.length+1].width + 'px;' +
'height: ' + itemAttrs[index+parseInt(rowElemIndex)-rowElems.length+1].height + 'px;' +
'margin-right:' + ((rowElemIndex < rowElems.length - 1)?options.minMargin+'px' : 0);
}
}

Expand Down
8 changes: 4 additions & 4 deletions 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 a68d0c4

Please sign in to comment.