From ba33b832baac4ea7172a81a07dcfebb9bc221e0f Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 13 Aug 2018 11:05:33 +0100 Subject: [PATCH] Info side putting info text in wrong pane --- editor/js/ui/tab-info.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/editor/js/ui/tab-info.js b/editor/js/ui/tab-info.js index 78dc246c0..7802f6e1a 100644 --- a/editor/js/ui/tab-info.js +++ b/editor/js/ui/tab-info.js @@ -280,8 +280,7 @@ RED.sidebar.info = (function() { if (infoText) { setInfoText(infoText); } - - + $(".sidebar-node-info-stack").scrollTop(0); $(".node-info-property-header").click(function(e) { e.preventDefault(); expandedSections["property"] = !expandedSections["property"]; @@ -395,10 +394,9 @@ RED.sidebar.info = (function() { function set(html,title) { // tips.stop(); // sections.show(); - // nodeSection.container.hide(); - infoSection.title.text(title||""); refresh(null); - $(infoSection.content).empty(); + nodeSection.container.hide(); + infoSection.title.text(title||RED._("sidebar.info.info")); setInfoText(html); $(".sidebar-node-info-stack").scrollTop(0); }