From b62d4a7bc15d0b01b076fac902209368ed487457 Mon Sep 17 00:00:00 2001 From: Antoine Vandecreme Date: Sun, 8 Jan 2017 18:36:37 +0100 Subject: [PATCH] Fix navigator with rotation and clip --- src/navigator.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/navigator.js b/src/navigator.js index 61d50734..45379fa1 100644 --- a/src/navigator.js +++ b/src/navigator.js @@ -369,9 +369,11 @@ $.extend( $.Navigator.prototype, $.EventSource.prototype, $.Viewer.prototype, /* // private _matchBounds: function(myItem, theirItem, immediately) { - var bounds = theirItem.getBounds(); + var bounds = theirItem.getBoundsNoRotate(); myItem.setPosition(bounds.getTopLeft(), immediately); myItem.setWidth(bounds.width, immediately); + myItem.setRotation(theirItem.getRotation(), immediately); + myItem.setClip(theirItem.getClip()); } });