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
d1e3f6ea
Commit
d1e3f6ea
authored
Feb 20, 2017
by
Alexander Yuzhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[DE mobile] Fix bug 34020
parent
e521671c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
apps/documenteditor/mobile/app/controller/Settings.js
apps/documenteditor/mobile/app/controller/Settings.js
+5
-2
No files found.
apps/documenteditor/mobile/app/controller/Settings.js
View file @
d1e3f6ea
...
@@ -57,7 +57,7 @@ define([
...
@@ -57,7 +57,7 @@ define([
infoObj
,
infoObj
,
modalView
,
modalView
,
_isPortrait
=
false
,
_isPortrait
=
false
,
_pageSizesIndex
=
-
1
,
_pageSizesIndex
=
0
,
_pageSizesCurrent
=
[
0
,
0
],
_pageSizesCurrent
=
[
0
,
0
],
txtCm
=
Common
.
Utils
.
Metric
.
getMetricName
(
Common
.
Utils
.
Metric
.
c_MetricUnits
.
cm
),
txtCm
=
Common
.
Utils
.
Metric
.
getMetricName
(
Common
.
Utils
.
Metric
.
c_MetricUnits
.
cm
),
_pageSizes
=
[
_pageSizes
=
[
...
@@ -359,6 +359,10 @@ define([
...
@@ -359,6 +359,10 @@ define([
},
},
onApiPageSize
:
function
(
w
,
h
)
{
onApiPageSize
:
function
(
w
,
h
)
{
if
(
!
_isPortrait
)
{
var
tempW
=
w
;
w
=
h
;
h
=
tempW
;
}
if
(
Math
.
abs
(
_pageSizesCurrent
[
0
]
-
w
)
>
0.01
||
if
(
Math
.
abs
(
_pageSizesCurrent
[
0
]
-
w
)
>
0.01
||
Math
.
abs
(
_pageSizesCurrent
[
1
]
-
h
)
>
0.01
)
{
Math
.
abs
(
_pageSizesCurrent
[
1
]
-
h
)
>
0.01
)
{
_pageSizesCurrent
=
[
w
,
h
];
_pageSizesCurrent
=
[
w
,
h
];
...
@@ -377,7 +381,6 @@ define([
...
@@ -377,7 +381,6 @@ define([
_isPortrait
=
isPortrait
;
_isPortrait
=
isPortrait
;
},
},
unknownText
:
'
Unknown
'
,
unknownText
:
'
Unknown
'
,
txtLoading
:
'
Loading...
'
,
txtLoading
:
'
Loading...
'
,
notcriticalErrorTitle
:
'
Warning
'
,
notcriticalErrorTitle
:
'
Warning
'
,
...
...
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