We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3fdf721 commit 210c2e6Copy full SHA for 210c2e6
src/LiveDevelopment/BrowserScripts/RemoteFunctions.js
@@ -1012,6 +1012,11 @@ function RemoteFunctions(config = {}) {
1012
// if right side overflows, we switch to the left side
1013
if (labelLeft + labelRect.width > window.innerWidth) {
1014
labelLeft = arrowRect.left - labelRect.width - 10;
1015
+
1016
+ // if left side also overflows then we switch back to the right side
1017
+ if (labelLeft < 0) {
1018
+ labelLeft = arrowRect.right + 7.5;
1019
+ }
1020
}
1021
1022
label.style.left = labelLeft + 'px';
0 commit comments