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
20dea7ed
Commit
20dea7ed
authored
Mar 14, 2017
by
Alexander Yuzhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE mobile] Fix bug 34035
parent
ef2958bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
apps/documenteditor/mobile/app/controller/edit/EditTable.js
apps/documenteditor/mobile/app/controller/edit/EditTable.js
+9
-4
No files found.
apps/documenteditor/mobile/app/controller/edit/EditTable.js
View file @
20dea7ed
...
...
@@ -80,14 +80,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
)];
}
}
})();
...
...
@@ -312,8 +317,8 @@ define([
// }
// });
// }
$
(
'
#edit-table-bordersize input
'
).
val
([
borderSizeTransform
.
sizeByIndex
(
_cellBorderWidth
)]);
$
(
'
#edit-table-bordersize input
'
).
val
([
borderSizeTransform
.
indexSizeByValue
(
_cellBorderWidth
)]);
$
(
'
#edit-table-bordersize .item-after
'
).
text
(
borderSizeTransform
.
sizeByValue
(
_cellBorderWidth
)
+
'
'
+
_metricText
);
var
borderPalette
=
me
.
getView
(
'
EditTable
'
).
paletteBorderColor
;
...
...
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