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
852fdb38
Commit
852fdb38
authored
Feb 10, 2017
by
Alexander Yuzhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE] Fix Bug 34035
parent
540d3989
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
8 deletions
+20
-8
apps/documenteditor/mobile/app/controller/edit/EditChart.js
apps/documenteditor/mobile/app/controller/edit/EditChart.js
+10
-4
apps/documenteditor/mobile/app/controller/edit/EditShape.js
apps/documenteditor/mobile/app/controller/edit/EditShape.js
+10
-4
No files found.
apps/documenteditor/mobile/app/controller/edit/EditChart.js
View file @
852fdb38
...
...
@@ -94,14 +94,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
)];
}
}
})();
...
...
@@ -224,8 +229,9 @@ define([
// Init style border size
var
borderSize
=
shapeProperties
.
get_stroke
().
get_width
()
*
72.0
/
25.4
;
$
(
'
#edit-chart-bordersize input
'
).
val
([
borderSizeTransform
.
sizeByIndex
(
borderSize
)]);
$
(
'
#edit-chart-bordersize .item-after
'
).
text
(
borderSizeTransform
.
sizeByValue
(
borderSize
)
+
'
'
+
_metricText
);
var
borderType
=
shapeProperties
.
get_stroke
().
get_type
();
$
(
'
#edit-chart-bordersize input
'
).
val
([(
borderType
==
Asc
.
c_oAscStrokeType
.
STROKE_NONE
)
?
0
:
borderSizeTransform
.
indexSizeByValue
(
borderSize
)]);
$
(
'
#edit-chart-bordersize .item-after
'
).
text
(((
borderType
==
Asc
.
c_oAscStrokeType
.
STROKE_NONE
)
?
0
:
borderSizeTransform
.
sizeByValue
(
borderSize
))
+
'
'
+
_metricText
);
paletteFillColor
&&
paletteFillColor
.
on
(
'
select
'
,
_
.
bind
(
me
.
onFillColor
,
me
));
paletteBorderColor
&&
paletteBorderColor
.
on
(
'
select
'
,
_
.
bind
(
me
.
onBorderColor
,
me
));
...
...
apps/documenteditor/mobile/app/controller/edit/EditShape.js
View file @
852fdb38
...
...
@@ -93,14 +93,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
)];
}
}
})();
...
...
@@ -214,8 +219,9 @@ define([
// Init style border size
var
borderSize
=
shapeProperties
.
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
=
shapeProperties
.
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
([
shapeProperties
.
get_fill
().
transparent
?
shapeProperties
.
get_fill
().
transparent
/
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