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
2d7812fe
Commit
2d7812fe
authored
May 24, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE] Bug 32436
parent
cba1eaea
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
24 deletions
+10
-24
apps/documenteditor/main/app/view/ImageSettingsAdvanced.js
apps/documenteditor/main/app/view/ImageSettingsAdvanced.js
+10
-24
No files found.
apps/documenteditor/main/app/view/ImageSettingsAdvanced.js
View file @
2d7812fe
...
...
@@ -190,6 +190,9 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat
if
(
btn
.
pressed
&&
this
.
spnHeight
.
getNumberValue
()
>
0
)
{
this
.
_nRatio
=
this
.
spnWidth
.
getNumberValue
()
/
this
.
spnHeight
.
getNumberValue
();
}
if
(
this
.
_changedProps
)
{
this
.
_changedProps
.
asc_putLockAspect
(
btn
.
pressed
);
}
},
this
));
// Shape Size
...
...
@@ -227,6 +230,9 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat
if
((
field
.
getValue
()
==
'
checked
'
)
&&
this
.
spnShapeHeight
.
getNumberValue
()
>
0
)
{
this
.
_nRatio
=
this
.
spnShapeWidth
.
getNumberValue
()
/
this
.
spnShapeHeight
.
getNumberValue
();
}
if
(
this
.
_changedProps
)
{
this
.
_changedProps
.
asc_putLockAspect
(
field
.
getValue
()
==
'
checked
'
);
}
},
this
));
this
.
spnShapeWidth
=
new
Common
.
UI
.
MetricSpinner
({
...
...
@@ -1250,10 +1256,8 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat
this
.
_objectType
=
Asc
.
c_oAscTypeSelectElement
.
Shape
;
this
.
_setShapeDefaults
(
shapeprops
);
this
.
setTitle
(
this
.
textTitleShape
);
value
=
Common
.
localStorage
.
getItem
(
"
de-settings-shaperatio
"
);
if
(
value
!==
null
&&
parseInt
(
value
)
==
1
)
{
this
.
chRatio
.
setValue
(
true
);
}
value
=
props
.
asc_getLockAspect
();
this
.
chRatio
.
setValue
(
value
);
this
.
spnShapeWidth
.
setMaxValue
(
this
.
sizeMax
.
width
);
this
.
spnShapeHeight
.
setMaxValue
(
this
.
sizeMax
.
height
);
...
...
@@ -1312,20 +1316,15 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat
this
.
btnsCategory
[
5
].
setDisabled
(
null
===
margins
);
// Margins
}
else
{
value
=
props
.
asc_getLockAspect
();
if
(
chartprops
)
{
this
.
_objectType
=
Asc
.
c_oAscTypeSelectElement
.
Chart
;
this
.
setTitle
(
this
.
textTitleChart
);
value
=
Common
.
localStorage
.
getItem
(
"
de-settings-chartratio
"
);
}
else
{
this
.
setTitle
(
this
.
textTitle
);
value
=
Common
.
localStorage
.
getItem
(
"
de-settings-imageratio
"
);
if
(
value
===
null
)
value
=
1
;
}
if
(
value
!==
null
&&
parseInt
(
value
)
==
1
)
{
this
.
btnRatio
.
toggle
(
true
);
}
this
.
btnRatio
.
toggle
(
value
);
this
.
spnWidth
.
setMaxValue
(
this
.
sizeMax
.
width
);
this
.
spnHeight
.
setMaxValue
(
this
.
sizeMax
.
height
);
...
...
@@ -1340,19 +1339,6 @@ define([ 'text!documenteditor/main/app/template/ImageSettingsAdvanced.templat
},
getSettings
:
function
()
{
if
(
this
.
_objectType
==
Asc
.
c_oAscTypeSelectElement
.
Shape
)
{
if
(
!
this
.
chRatio
.
isDisabled
())
Common
.
localStorage
.
setItem
(
"
de-settings-shaperatio
"
,
(
this
.
chRatio
.
getValue
()
==
'
checked
'
)
?
1
:
0
);
}
else
{
var
value
=
(
this
.
btnRatio
.
pressed
)
?
1
:
0
;
if
(
this
.
_objectType
==
Asc
.
c_oAscTypeSelectElement
.
Chart
)
{
Common
.
localStorage
.
setItem
(
"
de-settings-chartratio
"
,
value
);
}
else
{
Common
.
localStorage
.
setItem
(
"
de-settings-imageratio
"
,
value
);
}
}
var
properties
=
this
.
_changedProps
;
if
(
this
.
_objectType
==
Asc
.
c_oAscTypeSelectElement
.
Shape
)
{
...
...
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