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
1f2f4cdc
Commit
1f2f4cdc
authored
May 24, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PE] Bug 32442
parent
7a650ebd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js
...presentationeditor/main/app/view/ImageSettingsAdvanced.js
+3
-6
No files found.
apps/presentationeditor/main/app/view/ImageSettingsAdvanced.js
View file @
1f2f4cdc
...
...
@@ -199,10 +199,8 @@ define([ 'text!presentationeditor/main/app/template/ImageSettingsAdvanced.tem
this
.
btnOriginalSize
.
setDisabled
(
props
.
get_ImageUrl
()
===
null
||
props
.
get_ImageUrl
()
===
undefined
);
var
value
=
Common
.
localStorage
.
getItem
(
"
pe-settings-imageratio
"
);
if
(
value
===
null
||
parseInt
(
value
)
==
1
)
{
this
.
btnRatio
.
toggle
(
true
);
}
var
value
=
props
.
asc_getLockAspect
();
this
.
btnRatio
.
toggle
(
value
);
if
(
props
.
get_Position
())
{
var
Position
=
{
X
:
props
.
get_Position
().
get_X
(),
Y
:
props
.
get_Position
().
get_Y
()};
...
...
@@ -216,13 +214,12 @@ define([ 'text!presentationeditor/main/app/template/ImageSettingsAdvanced.tem
},
getSettings
:
function
()
{
Common
.
localStorage
.
setItem
(
"
pe-settings-imageratio
"
,
(
this
.
btnRatio
.
pressed
)
?
1
:
0
);
var
properties
=
new
Asc
.
asc_CImgProperty
();
if
(
this
.
spnHeight
.
getValue
()
!==
''
)
properties
.
put_Height
(
Common
.
Utils
.
Metric
.
fnRecalcToMM
(
this
.
spnHeight
.
getNumberValue
()));
if
(
this
.
spnWidth
.
getValue
()
!==
''
)
properties
.
put_Width
(
Common
.
Utils
.
Metric
.
fnRecalcToMM
(
this
.
spnWidth
.
getNumberValue
()));
properties
.
asc_putLockAspect
(
this
.
btnRatio
.
pressed
);
var
Position
=
new
Asc
.
CPosition
();
if
(
this
.
spnX
.
getValue
()
!==
''
)
...
...
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