Fix navigator with rotation and clip

This commit is contained in:
Antoine Vandecreme 2017-01-08 18:36:37 +01:00
parent fc69c6568d
commit b62d4a7bc1

View File

@ -369,9 +369,11 @@ $.extend( $.Navigator.prototype, $.EventSource.prototype, $.Viewer.prototype, /*
// private // private
_matchBounds: function(myItem, theirItem, immediately) { _matchBounds: function(myItem, theirItem, immediately) {
var bounds = theirItem.getBounds(); var bounds = theirItem.getBoundsNoRotate();
myItem.setPosition(bounds.getTopLeft(), immediately); myItem.setPosition(bounds.getTopLeft(), immediately);
myItem.setWidth(bounds.width, immediately); myItem.setWidth(bounds.width, immediately);
myItem.setRotation(theirItem.getRotation(), immediately);
myItem.setClip(theirItem.getClip());
} }
}); });