Fix resize portlet does not update grid size

This commit is contained in:
Nathan Gray 2013-06-10 15:05:21 +00:00
parent c8bbf8b582
commit fade72abc2

View File

@ -265,8 +265,8 @@ app.home = AppJS.extend(
.on("resizestop", function(event, ui) {
$portlet_container.data("gridster").resize_widget(
ui.element,
Math.round(ui.size.width / this.GRID),
Math.round(ui.size.height / this.GRID)
Math.round(ui.size.width / app.home.GRID),
Math.round(ui.size.height / app.home.GRID)
);
});
},