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 c06b02b commit c6c3e1eCopy full SHA for c6c3e1e
src/LiveDevelopment/BrowserScripts/RemoteFunctions.js
@@ -288,7 +288,9 @@ function RemoteFunctions(config) {
288
this.body.style.setProperty("left", elemBounds.left + (elemBounds.width - 40) + "px");
289
this.body.style.setProperty(
290
"top",
291
- (elemBounds.top - 30 < 0 ? elemBounds.top + elemBounds.offsetHeight + 5 : elemBounds.top - 30) + "px"
+ // if there's not enough space to show the box above the element,
292
+ // we show it below the element
293
+ (elemBounds.top - 30 < 0 ? elemBounds.top + elemBounds.height + 5 : elemBounds.top - 30) + "px"
294
);
295
this.body.style.setProperty("font-size", "12px");
296
this.body.style.setProperty("font-family", "Arial, sans-serif");
0 commit comments