Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
4df4249a
Commit
4df4249a
authored
Apr 04, 2018
by
Alexander Zobnin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrollbar: fix dashboard width bug
parent
6b598f34
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
public/app/core/components/scroll/scroll.ts
+10
-2
public/sass/components/_scrollbar.scss
+1
-6
No files found.
public/app/core/components/scroll/scroll.ts
View file @
4df4249a
...
@@ -27,14 +27,17 @@ export function geminiScrollbar() {
...
@@ -27,14 +27,17 @@ export function geminiScrollbar() {
$
(
scrollBarHTML
).
appendTo
(
scrollRoot
);
$
(
scrollBarHTML
).
appendTo
(
scrollRoot
);
elem
.
addClass
(
scrollerClass
);
elem
.
addClass
(
scrollerClass
);
let
scroll
bar
=
baron
(
{
let
scroll
Params
=
{
root
:
scrollRoot
[
0
],
root
:
scrollRoot
[
0
],
scroller
:
scroller
[
0
],
scroller
:
scroller
[
0
],
bar
:
'.baron__bar'
,
bar
:
'.baron__bar'
,
barOnCls
:
'_scrollbar'
,
barOnCls
:
'_scrollbar'
,
scrollingCls
:
'_scrolling'
,
scrollingCls
:
'_scrolling'
,
track
:
'.baron__track'
,
track
:
'.baron__track'
,
});
direction
:
'v'
,
};
let
scrollbar
=
baron
(
scrollParams
);
let
lastPos
=
0
;
let
lastPos
=
0
;
...
@@ -57,6 +60,11 @@ export function geminiScrollbar() {
...
@@ -57,6 +60,11 @@ export function geminiScrollbar() {
scope
scope
);
);
appEvents
.
on
(
'toggle-sidemenu'
,
evt
=>
{
// force updating dashboard width
scrollbar
.
scroll
();
});
scope
.
$on
(
'$routeChangeSuccess'
,
()
=>
{
scope
.
$on
(
'$routeChangeSuccess'
,
()
=>
{
lastPos
=
0
;
lastPos
=
0
;
elem
[
0
].
scrollTop
=
0
;
elem
[
0
].
scrollTop
=
0
;
...
...
public/sass/components/_scrollbar.scss
View file @
4df4249a
...
@@ -196,13 +196,8 @@
...
@@ -196,13 +196,8 @@
}
}
// Fix for side menu on mobile devices
// Fix for side menu on mobile devices
.sidemenu-open.sidemenu-open--xs
{
.main-view.baron
{
min-width
:
0%
;
}
}
.main-view.baron
{
.main-view.baron
{
min-width
:
99%
;
min-width
:
unset
;
}
}
.baron__clipper
{
.baron__clipper
{
...
...
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