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
2f31268a
Commit
2f31268a
authored
May 30, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE] fix Bug 32548
parent
50c447c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
apps/documenteditor/main/app/view/TableSettingsAdvanced.js
apps/documenteditor/main/app/view/TableSettingsAdvanced.js
+9
-6
No files found.
apps/documenteditor/main/app/view/TableSettingsAdvanced.js
View file @
2f31268a
...
...
@@ -478,12 +478,15 @@ define([ 'text!documenteditor/main/app/template/TableSettingsAdvanced.templat
});
this
.
cmbPrefWidthUnit
.
on
(
'
selected
'
,
_
.
bind
(
function
(
combo
,
record
)
{
if
(
this
.
_changedProps
)
{
var
maxwidth
=
Common
.
Utils
.
Metric
.
fnRecalcFromMM
(
558
);
this
.
nfPrefWidth
.
setDefaultUnit
(
record
.
value
?
'
%
'
:
Common
.
Utils
.
Metric
.
getCurrentMetricName
());
this
.
nfPrefWidth
.
setMaxValue
(
record
.
value
?
parseFloat
((
100
*
maxwidth
/
this
.
pageWidth
).
toFixed
(
2
))
:
maxwidth
);
this
.
nfPrefWidth
.
setStep
((
record
.
value
||
Common
.
Utils
.
Metric
.
getCurrentMetric
()
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
pt
)
?
1
:
0.1
);
this
.
nfPrefWidth
.
setValue
((
record
.
value
)
?
100
*
this
.
nfPrefWidth
.
getNumberValue
()
/
this
.
pageWidth
:
this
.
pageWidth
*
this
.
nfPrefWidth
.
getNumberValue
()
/
100
);
this
.
_changedProps
.
put_CellsWidth
(
record
.
value
?
-
this
.
nfPrefWidth
.
getNumberValue
()
:
Common
.
Utils
.
Metric
.
fnRecalcToMM
(
this
.
nfPrefWidth
.
getNumberValue
()));
var
defUnit
=
(
record
.
value
)
?
'
%
'
:
Common
.
Utils
.
Metric
.
getCurrentMetricName
();
if
(
this
.
nfPrefWidth
.
getUnitValue
()
!==
defUnit
)
{
var
maxwidth
=
Common
.
Utils
.
Metric
.
fnRecalcFromMM
(
558
);
this
.
nfPrefWidth
.
setDefaultUnit
(
defUnit
);
this
.
nfPrefWidth
.
setMaxValue
(
record
.
value
?
parseFloat
((
100
*
maxwidth
/
this
.
pageWidth
).
toFixed
(
2
))
:
maxwidth
);
this
.
nfPrefWidth
.
setStep
((
record
.
value
||
Common
.
Utils
.
Metric
.
getCurrentMetric
()
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
pt
)
?
1
:
0.1
);
this
.
nfPrefWidth
.
setValue
((
record
.
value
)
?
100
*
this
.
nfPrefWidth
.
getNumberValue
()
/
this
.
pageWidth
:
this
.
pageWidth
*
this
.
nfPrefWidth
.
getNumberValue
()
/
100
);
this
.
_changedProps
.
put_CellsWidth
(
record
.
value
?
-
this
.
nfPrefWidth
.
getNumberValue
()
:
Common
.
Utils
.
Metric
.
fnRecalcToMM
(
this
.
nfPrefWidth
.
getNumberValue
()));
}
}
},
this
));
...
...
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