Skip to content

Commit 2e70432

Browse files
committed
TS: fix for #810 many columns roundoff error
* cellWidth() no longer round things off (I was able to see issue with 60 columns and dragging itelf on right and would not relocate unless moved a lot futher).
1 parent 664624f commit 2e70432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gridstack.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ export class GridStack {
424424
*/
425425
public cellWidth(): number {
426426
// TODO: take margin into account (horizontal_padding in .scss) to make cellHeight='auto' square ? (see 810-many-columns.html)
427-
return Math.round(this.el.offsetWidth / this.opts.column);
427+
return this.el.offsetWidth / this.opts.column;
428428
}
429429

430430
/**

0 commit comments

Comments
 (0)