Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_web
check
Commits
47588246
Commit
47588246
authored
Dec 21, 2020
by
Kim Eunchul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#40900 【TECSS Web 1.9.2.6】PDFを回転して拡大すると挙動がおかしくなる
parent
0a757f0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
15 deletions
+33
-15
abvw/js/contentview.js
+33
-15
No files found.
abvw/js/contentview.js
View file @
47588246
...
@@ -4759,21 +4759,39 @@ CONTENTVIEW.flip = function(opt) {
...
@@ -4759,21 +4759,39 @@ CONTENTVIEW.flip = function(opt) {
// display rect
// display rect
CONTENTVIEW
.
srcRect
.
add
(
CONTENTVIEW
.
moveX
,
CONTENTVIEW
.
moveY
);
CONTENTVIEW
.
srcRect
.
add
(
CONTENTVIEW
.
moveX
,
CONTENTVIEW
.
moveY
);
if
(
$
(
rotatebtnR
).
attr
(
'angle'
)
==
'90'
||
$
(
rotatebtnR
).
attr
(
'angle'
)
==
'-90'
){
// fix rect
if
(
CONTENTVIEW
.
srcRect
.
left
<
0
)
{
if
(
CONTENTVIEW
.
srcRect
.
left
<
0
)
{
CONTENTVIEW
.
srcRect
.
left
=
0
;
CONTENTVIEW
.
srcRect
.
left
=
0
;
CONTENTVIEW
.
srcRect
.
right
=
CONTENTVIEW
.
srcRect
.
left
+
CONTENTVIEW
.
srcRect
.
width
;
CONTENTVIEW
.
srcRect
.
right
=
CONTENTVIEW
.
srcRect
.
left
+
CONTENTVIEW
.
srcRect
.
width
;
}
}
else
if
(
CONTENTVIEW
.
srcRect
.
right
>
offscreen
.
width
)
{
if
(
CONTENTVIEW
.
srcRect
.
right
>
offscreen
.
width
)
{
CONTENTVIEW
.
srcRect
.
left
=
offscreen
.
width
-
CONTENTVIEW
.
srcRect
.
width
;
CONTENTVIEW
.
srcRect
.
left
=
offscreen
.
width
-
CONTENTVIEW
.
srcRect
.
width
;
CONTENTVIEW
.
srcRect
.
right
=
offscreen
.
width
;
CONTENTVIEW
.
srcRect
.
right
=
offscreen
.
width
;
}
}
if
(
CONTENTVIEW
.
srcRect
.
top
<
0
)
{
if
(
CONTENTVIEW
.
srcRect
.
top
<
0
)
{
CONTENTVIEW
.
srcRect
.
top
=
0
;
CONTENTVIEW
.
srcRect
.
top
=
0
;
CONTENTVIEW
.
srcRect
.
bottom
=
CONTENTVIEW
.
srcRect
.
top
+
CONTENTVIEW
.
srcRect
.
height
;
CONTENTVIEW
.
srcRect
.
bottom
=
CONTENTVIEW
.
srcRect
.
top
+
CONTENTVIEW
.
srcRect
.
height
;
}
else
if
(
CONTENTVIEW
.
srcRect
.
bottom
>
offscreen
.
height
)
{
}
CONTENTVIEW
.
srcRect
.
top
=
offscreen
.
height
-
CONTENTVIEW
.
srcRect
.
height
;
if
(
CONTENTVIEW
.
srcRect
.
bottom
>
offscreen
.
height
)
{
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
;
CONTENTVIEW
.
srcRect
.
right
=
CONTENTVIEW
.
srcRect
.
left
+
CONTENTVIEW
.
srcRect
.
width
;
}
else
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
;
}
else
if
(
CONTENTVIEW
.
srcRect
.
bottom
>
offscreen
.
height
)
{
CONTENTVIEW
.
srcRect
.
top
=
offscreen
.
height
-
CONTENTVIEW
.
srcRect
.
height
;
CONTENTVIEW
.
srcRect
.
bottom
=
offscreen
.
height
;
}
}
}
// target rect
// target rect
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment