1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Info side putting info text in wrong pane

This commit is contained in:
Nick O'Leary 2018-08-13 11:05:33 +01:00
parent f6c017176b
commit ba33b832ba
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -280,8 +280,7 @@ RED.sidebar.info = (function() {
if (infoText) { if (infoText) {
setInfoText(infoText); setInfoText(infoText);
} }
$(".sidebar-node-info-stack").scrollTop(0);
$(".node-info-property-header").click(function(e) { $(".node-info-property-header").click(function(e) {
e.preventDefault(); e.preventDefault();
expandedSections["property"] = !expandedSections["property"]; expandedSections["property"] = !expandedSections["property"];
@ -395,10 +394,9 @@ RED.sidebar.info = (function() {
function set(html,title) { function set(html,title) {
// tips.stop(); // tips.stop();
// sections.show(); // sections.show();
// nodeSection.container.hide();
infoSection.title.text(title||"");
refresh(null); refresh(null);
$(infoSection.content).empty(); nodeSection.container.hide();
infoSection.title.text(title||RED._("sidebar.info.info"));
setInfoText(html); setInfoText(html);
$(".sidebar-node-info-stack").scrollTop(0); $(".sidebar-node-info-stack").scrollTop(0);
} }