Skip to content

Commit a68d0c4

Browse files
committed
fix bug #13
1 parent 772b363 commit a68d0c4

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "rowGrid.js",
33
"description": "A small, lightweight jQuery plugin for placing items in straight rows",
4-
"version": "1.0.1",
4+
"version": "1.0.2",
55
"license": "MIT",
66
"authors": [
77
{ "name": "Bruno Joseph", "email": "[email protected]"," homepage": "http://brunojoseph.com" }

jquery.row-grid.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@
7474
if(rowElemIndex === 0) {
7575
rowElems[rowElemIndex].className += ' ' + options.lastRowClass;
7676
}
77-
rowElems[rowElemIndex].style.cssText = 'margin-right:' + ((rowElemIndex < rowElems.length - 1)?options.minMargin+'px' : 0);
77+
rowElems[rowElemIndex].style.cssText =
78+
'width: ' + itemAttrs[index+parseInt(rowElemIndex)-rowElems.length+1].width + 'px;' +
79+
'height: ' + itemAttrs[index+parseInt(rowElemIndex)-rowElems.length+1].height + 'px;' +
80+
'margin-right:' + ((rowElemIndex < rowElems.length - 1)?options.minMargin+'px' : 0);
7881
}
7982
}
8083

jquery.row-grid.min.js

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)