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
312efd8e
Commit
312efd8e
authored
Mar 17, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE] Отладка TableSettingsAdvanced - выставление ширины.
parent
123a9972
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
apps/documenteditor/main/app/view/TableSettingsAdvanced.js
apps/documenteditor/main/app/view/TableSettingsAdvanced.js
+3
-4
No files found.
apps/documenteditor/main/app/view/TableSettingsAdvanced.js
View file @
312efd8e
...
...
@@ -153,7 +153,7 @@ define([ 'text!documenteditor/main/app/template/TableSettingsAdvanced.templat
if
(
this
.
_changedProps
)
{
var
maxwidth
=
Common
.
Utils
.
Metric
.
fnRecalcFromMM
(
558
);
this
.
nfWidth
.
setDefaultUnit
(
record
.
value
?
'
%
'
:
Common
.
Utils
.
Metric
.
metricName
[
Common
.
Utils
.
Metric
.
getCurrentMetric
()]);
this
.
nfWidth
.
setMaxValue
(
record
.
value
?
parseFloat
(
100
*
maxwidth
/
this
.
pageWidth
).
toFixed
(
2
)
:
maxwidth
);
this
.
nfWidth
.
setMaxValue
(
record
.
value
?
parseFloat
(
(
100
*
maxwidth
/
this
.
pageWidth
).
toFixed
(
2
)
)
:
maxwidth
);
this
.
nfWidth
.
setStep
((
record
.
value
||
Common
.
Utils
.
Metric
.
getCurrentMetric
()
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
pt
)
?
1
:
0.1
);
this
.
nfWidth
.
setValue
((
record
.
value
)
?
100
*
this
.
nfWidth
.
getNumberValue
()
/
this
.
pageWidth
:
this
.
pageWidth
*
this
.
nfWidth
.
getNumberValue
()
/
100
);
this
.
_changedProps
.
put_Width
(
record
.
value
?
-
this
.
nfWidth
.
getNumberValue
()
:
Common
.
Utils
.
Metric
.
fnRecalcToMM
(
this
.
nfWidth
.
getNumberValue
()));
...
...
@@ -1075,7 +1075,7 @@ define([ 'text!documenteditor/main/app/template/TableSettingsAdvanced.templat
this
.
cmbUnit
.
setValue
(
TableWidth
<
0
?
1
:
0
);
this
.
nfWidth
.
setDefaultUnit
(
TableWidth
<
0
?
'
%
'
:
Common
.
Utils
.
Metric
.
metricName
[
Common
.
Utils
.
Metric
.
getCurrentMetric
()]);
if
(
TableWidth
<
0
)
//%
this
.
nfWidth
.
setMaxValue
(
parseFloat
(
100
*
Common
.
Utils
.
Metric
.
fnRecalcFromMM
(
558
)
/
this
.
pageWidth
).
toFixed
(
2
));
this
.
nfWidth
.
setMaxValue
(
parseFloat
(
(
100
*
Common
.
Utils
.
Metric
.
fnRecalcFromMM
(
558
)
/
this
.
pageWidth
).
toFixed
(
2
)
));
this
.
nfWidth
.
setStep
((
TableWidth
<
0
||
Common
.
Utils
.
Metric
.
getCurrentMetric
()
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
pt
)
?
1
:
0.1
);
if
(
TableWidth
!==
null
)
this
.
nfWidth
.
setValue
(
TableWidth
>
0
?
Common
.
Utils
.
Metric
.
fnRecalcFromMM
(
TableWidth
)
:
-
TableWidth
,
true
);
...
...
@@ -1956,8 +1956,7 @@ define([ 'text!documenteditor/main/app/template/TableSettingsAdvanced.templat
spinner
.
setStep
(
Common
.
Utils
.
Metric
.
getCurrentMetric
()
==
Common
.
Utils
.
Metric
.
c_MetricUnits
.
cm
?
0.1
:
1
);
}
}
if
(
this
.
pageWidth
)
this
.
pageWidth
=
Common
.
Utils
.
Metric
.
fnRecalcFromMM
(
this
.
pageWidth
);
this
.
pageWidth
=
Common
.
Utils
.
Metric
.
fnRecalcFromMM
(
this
.
pageWidth
);
},
updateThemeColors
:
function
()
{
...
...
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