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
7105d161
Commit
7105d161
authored
Jan 15, 2019
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scrollbar select fix
parent
3bdd4a5c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
packages/grafana-ui/src/components/CustomScrollbar/CustomScrollbar.tsx
+4
-3
packages/grafana-ui/src/components/Select/Select.tsx
+1
-1
No files found.
packages/grafana-ui/src/components/CustomScrollbar/CustomScrollbar.tsx
View file @
7105d161
...
@@ -6,6 +6,7 @@ interface Props {
...
@@ -6,6 +6,7 @@ interface Props {
autoHide
?:
boolean
;
autoHide
?:
boolean
;
autoHideTimeout
?:
number
;
autoHideTimeout
?:
number
;
autoHideDuration
?:
number
;
autoHideDuration
?:
number
;
autoMaxHeight
?:
string
;
hideTracksWhenNotNeeded
?:
boolean
;
hideTracksWhenNotNeeded
?:
boolean
;
}
}
...
@@ -18,11 +19,12 @@ export class CustomScrollbar extends PureComponent<Props> {
...
@@ -18,11 +19,12 @@ export class CustomScrollbar extends PureComponent<Props> {
autoHide
:
true
,
autoHide
:
true
,
autoHideTimeout
:
200
,
autoHideTimeout
:
200
,
autoHideDuration
:
200
,
autoHideDuration
:
200
,
autoMaxHeight
:
'100%'
,
hideTracksWhenNotNeeded
:
false
,
hideTracksWhenNotNeeded
:
false
,
};
};
render
()
{
render
()
{
const
{
customClassName
,
children
,
...
scrollProps
}
=
this
.
props
;
const
{
customClassName
,
children
,
autoMaxHeight
}
=
this
.
props
;
return
(
return
(
<
Scrollbars
<
Scrollbars
...
@@ -31,13 +33,12 @@ export class CustomScrollbar extends PureComponent<Props> {
...
@@ -31,13 +33,12 @@ export class CustomScrollbar extends PureComponent<Props> {
// These autoHeightMin & autoHeightMax options affect firefox and chrome differently.
// These autoHeightMin & autoHeightMax options affect firefox and chrome differently.
// Before these where set to inhert but that caused problems with cut of legends in firefox
// Before these where set to inhert but that caused problems with cut of legends in firefox
autoHeightMin=
{
'0'
}
autoHeightMin=
{
'0'
}
autoHeightMax=
{
'100%'
}
autoHeightMax=
{
autoMaxHeight
}
renderTrackHorizontal=
{
props
=>
<
div
{
...
props
}
className=
"track-horizontal"
/>
}
renderTrackHorizontal=
{
props
=>
<
div
{
...
props
}
className=
"track-horizontal"
/>
}
renderTrackVertical=
{
props
=>
<
div
{
...
props
}
className=
"track-vertical"
/>
}
renderTrackVertical=
{
props
=>
<
div
{
...
props
}
className=
"track-vertical"
/>
}
renderThumbHorizontal=
{
props
=>
<
div
{
...
props
}
className=
"thumb-horizontal"
/>
}
renderThumbHorizontal=
{
props
=>
<
div
{
...
props
}
className=
"thumb-horizontal"
/>
}
renderThumbVertical=
{
props
=>
<
div
{
...
props
}
className=
"thumb-vertical"
/>
}
renderThumbVertical=
{
props
=>
<
div
{
...
props
}
className=
"thumb-vertical"
/>
}
renderView=
{
props
=>
<
div
{
...
props
}
className=
"view"
/>
}
renderView=
{
props
=>
<
div
{
...
props
}
className=
"view"
/>
}
{
...
scrollProps
}
>
>
{
children
}
{
children
}
</
Scrollbars
>
</
Scrollbars
>
...
...
packages/grafana-ui/src/components/Select/Select.tsx
View file @
7105d161
...
@@ -61,7 +61,7 @@ interface AsyncProps {
...
@@ -61,7 +61,7 @@ interface AsyncProps {
export
const
MenuList
=
(
props
:
any
)
=>
{
export
const
MenuList
=
(
props
:
any
)
=>
{
return
(
return
(
<
components
.
MenuList
{
...
props
}
>
<
components
.
MenuList
{
...
props
}
>
<
CustomScrollbar
autoHide=
{
false
}
>
{
props
.
children
}
</
CustomScrollbar
>
<
CustomScrollbar
autoHide=
{
false
}
autoMaxHeight=
"inherit"
>
{
props
.
children
}
</
CustomScrollbar
>
</
components
.
MenuList
>
</
components
.
MenuList
>
);
);
};
};
...
...
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