Skip to content
Permalink
Browse files

Resizable grid bug on IE - fixed #2939

  • Loading branch information
eduardolundgren committed Jun 3, 2008
1 parent ef18dbb commit b294b050435f7e97037e17b7abfb8bb8476c0914
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/source/ui.resizable.js
@@ -582,7 +582,7 @@ $.ui.plugin.add("resizable", "grid", {
resize: function(e, ui) {
var o = ui.options, self = $(this).data("resizable"), cs = self.size, os = self.originalSize, op = self.originalPosition, a = self.axis, ratio = o._aspectRatio || e.shiftKey;
o.grid = typeof o.grid == "number" ? [o.grid, o.grid] : o.grid;
var ox = Math.round((cs.width - os.width) / o.grid[0]) * o.grid[0], oy = Math.round((cs.height - os.height) / o.grid[1]) * o.grid[1];
var ox = Math.round((cs.width - os.width) / (o.grid[0]||1)) * (o.grid[0]||1), oy = Math.round((cs.height - os.height) / (o.grid[1]||1)) * (o.grid[1]||1);

if (/^(se|s|e)$/.test(a)) {
self.size.width = os.width + ox;

0 comments on commit b294b05

Please sign in to comment.
You can’t perform that action at this time.