Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nextcloud mail - PostGuard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Laura Kolijn
Nextcloud mail - PostGuard
Commits
fadd2835
Commit
fadd2835
authored
9 years ago
by
Christoph Wurst
Browse files
Options
Downloads
Patches
Plain Diff
duplicate core js.js getScrollBarWidth for older oc releases
fixes #915
parent
8f64e290
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/views/helper.js
+31
-0
31 additions, 0 deletions
js/views/helper.js
with
31 additions
and
0 deletions
js/views/helper.js
+
31
−
0
View file @
fadd2835
...
...
@@ -94,6 +94,37 @@ $(document).ready(function() {
}
});
//duplicate getScrollBarWidth function from core js.js
//TODO: remove once OC 8.0 support has been dropped
window
.
getScrollBarWidth
=
window
.
getScrollBarWidth
||
function
()
{
var
inner
=
document
.
createElement
(
'
p
'
);
inner
.
style
.
width
=
"
100%
"
;
inner
.
style
.
height
=
"
200px
"
;
var
outer
=
document
.
createElement
(
'
div
'
);
outer
.
style
.
position
=
"
absolute
"
;
outer
.
style
.
top
=
"
0px
"
;
outer
.
style
.
left
=
"
0px
"
;
outer
.
style
.
visibility
=
"
hidden
"
;
outer
.
style
.
width
=
"
200px
"
;
outer
.
style
.
height
=
"
150px
"
;
outer
.
style
.
overflow
=
"
hidden
"
;
outer
.
appendChild
(
inner
);
document
.
body
.
appendChild
(
outer
);
var
w1
=
inner
.
offsetWidth
;
outer
.
style
.
overflow
=
'
scroll
'
;
var
w2
=
inner
.
offsetWidth
;
if
(
w1
===
w2
)
{
w2
=
outer
.
clientWidth
;
}
document
.
body
.
removeChild
(
outer
);
return
(
w1
-
w2
);
};
//END TODO
// adjust controls/header bar width
window
.
adjustControlsWidth
=
function
()
{
if
(
$
(
'
#mail-message-header
'
).
length
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment