Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10ef102 commit c0c12d0Copy full SHA for c0c12d0
src/jquery.gridster.js
@@ -2549,8 +2549,10 @@
2549
this.baseX = ($(window).width() - aw) / 2;
2550
this.baseY = this.$wrapper.offset().top;
2551
2552
- this.container_width = (this.cols * this.options.widget_base_dimensions[0]) +
2553
- (this.cols * this.options.widget_margins[0]) + this.options.widget_margins[0];
+ // left and right gutters not included
+ this.container_width = (this.cols *
2554
+ this.options.widget_base_dimensions[0]) + ((this.cols - 1) * 2 *
2555
+ this.options.widget_margins[0]);
2556
2557
if (this.options.autogenerate_stylesheet) {
2558
this.generate_stylesheet();
0 commit comments