Skip to content

Commit 300f86c

Browse files
committed
fix: info box not getting out of bounds for non-editable elements when live preview is resized
1 parent 60ca314 commit 300f86c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4028,17 +4028,18 @@ function RemoteFunctions(config = {}) {
40284028
}
40294029
}
40304030

4031-
// recreate UI boxes (info box and more options box)
4031+
// recreate UI boxes so that they are placed properly
40324032
function redrawUIBoxes() {
40334033
if (_nodeMoreOptionsBox) {
40344034
const element = _nodeMoreOptionsBox.element;
40354035
_nodeMoreOptionsBox.remove();
40364036
_nodeMoreOptionsBox = new NodeMoreOptionsBox(element);
4037+
}
40374038

4038-
if (_nodeInfoBox) {
4039-
dismissNodeInfoBox();
4040-
_nodeInfoBox = new NodeInfoBox(element);
4041-
}
4039+
if (_nodeInfoBox) {
4040+
const element = _nodeInfoBox.element;
4041+
_nodeInfoBox.remove();
4042+
_nodeInfoBox = new NodeInfoBox(element);
40424043
}
40434044

40444045
if (_aiPromptBox) {

0 commit comments

Comments
 (0)