Permalink
Browse files

Fixing non-transforming browsers with scaling in moveElement.

  • Loading branch information...
1 parent 476e9fe commit 011353c88a83ab3346aba372722a759d9a6e52bf @tmcw tmcw committed Aug 2, 2011
Showing with 5 additions and 5 deletions.
  1. +2 −2 modestmaps.js
  2. +1 −1 modestmaps.min.js
  3. +2 −2 src/utils.js
View
@@ -100,8 +100,8 @@ if (!com) {
} else {
el.style.left = point.x + 'px';
el.style.top = point.y + 'px';
- el.style.width = point.width + 'px';
- el.style.height = point.height + 'px';
+ el.style.width = Math.ceil(point.width * point.scale) + 'px';
+ el.style.height = Math.ceil(point.height * point.scale) + 'px';
}
};
Oops, something went wrong.

0 comments on commit 011353c

Please sign in to comment.