projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2fc36c
)
Roo/bootstrap/LayoutMasonry.js
author
edward
<edward@roojs.com>
Mon, 18 Dec 2017 10:18:22 +0000
(18:18 +0800)
committer
edward
<edward@roojs.com>
Mon, 18 Dec 2017 10:18:22 +0000
(18:18 +0800)
Roo/bootstrap/LayoutMasonry.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/LayoutMasonry.js
b/Roo/bootstrap/LayoutMasonry.js
index
56396e3
..
c1edf3c
100644
(file)
--- a/
Roo/bootstrap/LayoutMasonry.js
+++ b/
Roo/bootstrap/LayoutMasonry.js
@@
-239,7
+239,7
@@
Roo.extend(Roo.bootstrap.LayoutMasonry, Roo.bootstrap.Component, {
this.colWidth = boxWidth + avail - this.padWidth;
- this.unitWidth = Math.
floor
((this.colWidth - (this.gutter * 2)) / 3);
+ this.unitWidth = Math.
round
((this.colWidth - (this.gutter * 2)) / 3);
this.unitHeight = this.boxHeight > 0 ? this.boxHeight : this.unitWidth;
},