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
f4d6e30a
Commit
f4d6e30a
authored
Mar 01, 2017
by
Alexander Yuzhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PE mobile] Fix bug 34186
parent
0ffe9a50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
apps/presentationeditor/mobile/app/controller/edit/EditShape.js
...resentationeditor/mobile/app/controller/edit/EditShape.js
+10
-4
No files found.
apps/presentationeditor/mobile/app/controller/edit/EditShape.js
View file @
f4d6e30a
...
...
@@ -65,14 +65,19 @@ define([
return
_sizes
[
index
];
},
s
izeByValue
:
function
(
value
)
{
indexS
izeByValue
:
function
(
value
)
{
var
index
=
0
;
_
.
each
(
_sizes
,
function
(
size
,
idx
)
{
if
(
Math
.
abs
(
size
-
value
)
<
0.25
)
{
index
=
idx
;
}
});
return
_sizes
[
index
];
return
index
},
sizeByValue
:
function
(
value
)
{
return
_sizes
[
this
.
indexSizeByValue
(
value
)];
}
}
})();
...
...
@@ -147,8 +152,9 @@ define([
// Init style border size
var
borderSize
=
_shapeObject
.
get_stroke
().
get_width
()
*
72.0
/
25.4
;
$
(
'
#edit-shape-bordersize input
'
).
val
([
borderSizeTransform
.
sizeByIndex
(
borderSize
)]);
$
(
'
#edit-shape-bordersize .item-after
'
).
text
(
borderSizeTransform
.
sizeByValue
(
borderSize
)
+
'
'
+
_metricText
);
var
borderType
=
_shapeObject
.
get_stroke
().
get_type
();
$
(
'
#edit-shape-bordersize input
'
).
val
([(
borderType
==
Asc
.
c_oAscStrokeType
.
STROKE_NONE
)
?
0
:
borderSizeTransform
.
indexSizeByValue
(
borderSize
)]);
$
(
'
#edit-shape-bordersize .item-after
'
).
text
(((
borderType
==
Asc
.
c_oAscStrokeType
.
STROKE_NONE
)
?
0
:
borderSizeTransform
.
sizeByValue
(
borderSize
))
+
'
'
+
_metricText
);
// Init style opacity
$
(
'
#edit-shape-effect input
'
).
val
([
_shapeObject
.
get_fill
().
asc_getTransparent
()
?
_shapeObject
.
get_fill
().
asc_getTransparent
()
/
2.55
:
100
]);
...
...
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