mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix RolePicker component offset when it has too many roles (#62857)
Fix role picker offset with too many roles
This commit is contained in:
parent
25756b49a3
commit
bc67edbff8
@ -64,7 +64,9 @@ export const RolePicker = ({
|
|||||||
let vertical = -offsetVertical;
|
let vertical = -offsetVertical;
|
||||||
|
|
||||||
if (distance < MENU_MAX_HEIGHT + 20) {
|
if (distance < MENU_MAX_HEIGHT + 20) {
|
||||||
vertical = offsetVertical;
|
// Off set to display the role picker menu at the bottom of the screen
|
||||||
|
// without resorting to scroll the page
|
||||||
|
vertical = 50 + (MENU_MAX_HEIGHT - distance) - offsetVertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user