Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
web-apps
Commits
f25358b3
Commit
f25358b3
authored
May 19, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE] fix Bug 32450
parent
74d2cff1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
apps/documenteditor/main/app/view/ImageSettingsAdvanced.js
apps/documenteditor/main/app/view/ImageSettingsAdvanced.js
+11
-8
No files found.
apps/documenteditor/main/app/view/ImageSettingsAdvanced.js
View file @
f25358b3
...
...
@@ -98,6 +98,7 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat
this
.
_nRatio
=
1
;
this
.
_originalProps
=
this
.
options
.
imageProps
;
this
.
sectionProps
=
this
.
options
.
sectionProps
;
this
.
pageWidth
=
this
.
options
.
sectionProps
?
this
.
options
.
sectionProps
.
get_W
()
:
210
;
this
.
pageHeight
=
this
.
options
.
sectionProps
?
this
.
options
.
sectionProps
.
get_H
()
:
297
;
this
.
_changedProps
=
null
;
...
...
@@ -327,10 +328,10 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat
},
this
));
this
.
_arrHRelativePc
=
[
{
displayValue
:
this
.
textLeftMargin
,
value
:
Asc
.
c_oAscRelativeFromH
.
LeftMargin
},
{
displayValue
:
this
.
textMargin
,
value
:
Asc
.
c_oAscRelativeFromH
.
Margin
},
{
displayValue
:
this
.
textPage
,
value
:
Asc
.
c_oAscRelativeFromH
.
Page
},
{
displayValue
:
this
.
textRightMargin
,
value
:
Asc
.
c_oAscRelativeFromH
.
RightMargin
}
{
displayValue
:
this
.
textLeftMargin
,
value
:
Asc
.
c_oAscRelativeFromH
.
LeftMargin
,
size
:
this
.
sectionProps
.
get_LeftMargin
()
},
{
displayValue
:
this
.
textMargin
,
value
:
Asc
.
c_oAscRelativeFromH
.
Margin
,
size
:
this
.
sectionProps
.
get_W
()
-
this
.
sectionProps
.
get_LeftMargin
()
-
this
.
sectionProps
.
get_RightMargin
()
},
{
displayValue
:
this
.
textPage
,
value
:
Asc
.
c_oAscRelativeFromH
.
Page
,
size
:
this
.
sectionProps
.
get_W
()
},
{
displayValue
:
this
.
textRightMargin
,
value
:
Asc
.
c_oAscRelativeFromH
.
RightMargin
,
size
:
this
.
sectionProps
.
get_RightMargin
()
}
];
this
.
cmbWidthPc
=
new
Common
.
UI
.
ComboBox
({
...
...
@@ -345,10 +346,10 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat
this
.
cmbWidthPc
.
on
(
'
selected
'
,
_
.
bind
(
this
.
onCmbWidthPcSelect
,
this
));
this
.
_arrVRelativePc
=
[
{
displayValue
:
this
.
textMargin
,
value
:
Asc
.
c_oAscRelativeFromV
.
Margin
},
{
displayValue
:
this
.
textBottomMargin
,
value
:
Asc
.
c_oAscRelativeFromV
.
BottomMargin
},
{
displayValue
:
this
.
textPage
,
value
:
Asc
.
c_oAscRelativeFromV
.
Page
},
{
displayValue
:
this
.
textTopMargin
,
value
:
Asc
.
c_oAscRelativeFromV
.
TopMargin
}
{
displayValue
:
this
.
textMargin
,
value
:
Asc
.
c_oAscRelativeFromV
.
Margin
,
size
:
this
.
sectionProps
.
get_H
()
-
this
.
sectionProps
.
get_TopMargin
()
-
this
.
sectionProps
.
get_BottomMargin
()
},
{
displayValue
:
this
.
textBottomMargin
,
value
:
Asc
.
c_oAscRelativeFromV
.
BottomMargin
,
size
:
this
.
sectionProps
.
get_BottomMargin
()
},
{
displayValue
:
this
.
textPage
,
value
:
Asc
.
c_oAscRelativeFromV
.
Page
,
size
:
this
.
sectionProps
.
get_H
()
},
{
displayValue
:
this
.
textTopMargin
,
value
:
Asc
.
c_oAscRelativeFromV
.
TopMargin
,
size
:
this
.
sectionProps
.
get_TopMargin
()
}
];
this
.
cmbHeightPc
=
new
Common
.
UI
.
ComboBox
({
...
...
@@ -1265,6 +1266,7 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat
for
(
i
=
0
;
i
<
this
.
_arrHRelativePc
.
length
;
i
++
)
{
if
(
value
==
this
.
_arrHRelativePc
[
i
].
value
)
{
this
.
cmbWidthPc
.
setValue
(
value
);
this
.
spnShapeWidth
.
setValue
(
Common
.
Utils
.
Metric
.
fnRecalcFromMM
(
this
.
_arrHRelativePc
[
i
].
size
*
sizeRelH
.
get_Value
()
/
100
).
toFixed
(
2
),
true
);
this
.
_state
.
ShapeWidthPcFrom
=
value
;
break
;
}
...
...
@@ -1283,6 +1285,7 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat
for
(
i
=
0
;
i
<
this
.
_arrVRelativePc
.
length
;
i
++
)
{
if
(
value
==
this
.
_arrVRelativePc
[
i
].
value
)
{
this
.
cmbHeightPc
.
setValue
(
value
);
this
.
spnShapeHeight
.
setValue
(
Common
.
Utils
.
Metric
.
fnRecalcFromMM
(
this
.
_arrVRelativePc
[
i
].
size
*
sizeRelV
.
get_Value
()
/
100
).
toFixed
(
2
),
true
);
this
.
_state
.
ShapeHeightPcFrom
=
value
;
break
;
}
...
...
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