Fix the responsive grid to be able to shrink.

This commit is contained in:
Ed Mackey
2015-08-19 11:07:39 -04:00
parent fb5b174b0e
commit f3ce2277aa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -21,7 +21,7 @@
enabled: true
}
}).data('gridster');
$('.gridster ul').css({'width': $(window).width()});
$('.gridster ul').css({'padding': '0'});
});
</script>
</head>
+1 -1
View File
@@ -3689,7 +3689,7 @@
*/
fn.get_responsive_col_width = function () {
var cols = this.cols || this.options.max_cols;
return (this.$el[0].scrollWidth - ((cols + 1) * this.options.widget_margins[0])) / cols;
return (this.$el[0].clientWidth - 3 - ((cols + 1) * this.options.widget_margins[0])) / cols;
};
/**