mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Ensure tourGuide popover doesn't fall offscreen
Only handles the left hand edge - will need expanding to cover the other edges as needed
This commit is contained in:
parent
6a49b5c106
commit
2bd5c4f527
@ -348,7 +348,12 @@ RED.tourGuide = (function() {
|
|||||||
maxWidth: maxWidth+"px",
|
maxWidth: maxWidth+"px",
|
||||||
direction: direction,
|
direction: direction,
|
||||||
})
|
})
|
||||||
|
setTimeout(function() {
|
||||||
|
var pos = popover.element.position()
|
||||||
|
if (pos.left < 0) {
|
||||||
|
popover.element.css({left: 0});
|
||||||
|
}
|
||||||
|
},100);
|
||||||
if (nextButton) {
|
if (nextButton) {
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
nextButton.focus();
|
nextButton.focus();
|
||||||
|
Loading…
Reference in New Issue
Block a user