Commit 47588246 by Kim Eunchul

#40900 【TECSS Web 1.9.2.6】PDFを回転して拡大すると挙動がおかしくなる

parent 0a757f0e
......@@ -4759,7 +4759,24 @@ CONTENTVIEW.flip = function(opt) {
// display rect
CONTENTVIEW.srcRect.add(CONTENTVIEW.moveX, CONTENTVIEW.moveY);
if($(rotatebtnR).attr('angle') == '90' || $(rotatebtnR).attr('angle') == '-90'){
if (CONTENTVIEW.srcRect.left < 0) {
CONTENTVIEW.srcRect.left = 0;
CONTENTVIEW.srcRect.right = CONTENTVIEW.srcRect.left + CONTENTVIEW.srcRect.width;
}
if (CONTENTVIEW.srcRect.right > offscreen.width) {
CONTENTVIEW.srcRect.left = offscreen.width - CONTENTVIEW.srcRect.width;
CONTENTVIEW.srcRect.right = offscreen.width;
}
if (CONTENTVIEW.srcRect.top < 0) {
CONTENTVIEW.srcRect.top = 0;
CONTENTVIEW.srcRect.bottom = CONTENTVIEW.srcRect.top + CONTENTVIEW.srcRect.height;
}
if (CONTENTVIEW.srcRect.bottom > offscreen.height) {
CONTENTVIEW.srcRect.top = offscreen.height - CONTENTVIEW.srcRect.height;
CONTENTVIEW.srcRect.bottom = offscreen.height;
}
}else{
// fix rect
if (CONTENTVIEW.srcRect.left < 0) {
CONTENTVIEW.srcRect.left = 0;
......@@ -4775,6 +4792,7 @@ CONTENTVIEW.flip = function(opt) {
CONTENTVIEW.srcRect.top = offscreen.height - CONTENTVIEW.srcRect.height;
CONTENTVIEW.srcRect.bottom = offscreen.height;
}
}
// target rect
var width = offscreen.width;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment