summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSidharth Singh2013-08-05 06:17:26 (EDT)
committerStephan Born2013-09-23 04:57:55 (EDT)
commita7b215fa187053470864bf454baf95ee4160d40e (patch)
treefdb26996e48983cdf9e6459ca658788f564ab26f
parentbfd08328e111b5650780b789c1a0652b0d3d0315 (diff)
downloadorg.eclipse.stardust.ui.web-a7b215fa187053470864bf454baf95ee4160d40e.zip
org.eclipse.stardust.ui.web-a7b215fa187053470864bf454baf95ee4160d40e.tar.gz
org.eclipse.stardust.ui.web-a7b215fa187053470864bf454baf95ee4160d40e.tar.bz2
Jira-ID: CRNT-29841
Added args for width, height when resize is called from tiffViewerEventScript.js git-svn-id: https://svn.csa.sungard.com/repos/ipp2/product/trunk/stardust/ui.web@66475 8100b5e0-4d52-466c-ae9c-bdeccbdeaf6b Signed-off-by: Sidharth Singh <sidharth.singh@sungard.com>
-rw-r--r--views-common/src/main/resources/META-INF/xhtml/scripts/tiffViewerEventScript.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/views-common/src/main/resources/META-INF/xhtml/scripts/tiffViewerEventScript.js b/views-common/src/main/resources/META-INF/xhtml/scripts/tiffViewerEventScript.js
index 8c4d1c1..e138f7c 100644
--- a/views-common/src/main/resources/META-INF/xhtml/scripts/tiffViewerEventScript.js
+++ b/views-common/src/main/resources/META-INF/xhtml/scripts/tiffViewerEventScript.js
@@ -17,7 +17,6 @@ var docWidth = 0, docHeight = 0;
function restoreTiffIframe(iframeId, anchorId) {
var divObj = document.getElementById('tiffViewerIframe');
var topValue = 0, leftValue = 0;
-
while (divObj) {
leftValue += divObj.offsetLeft;
topValue += divObj.offsetTop;
@@ -39,7 +38,11 @@ function restoreTiffIframe(iframeId, anchorId) {
}
this.parent.window.BridgeUtils.FrameManager.resizeAndReposition(
iframeId, {
- anchorId : anchorId
+ anchorId : anchorId,
+ canvasWidth : docWidth,
+ canvasHeight : docHeight,
+ width : docWidth,
+ height : docHeight
});
}
}