Skip to content

Commit

Permalink
fix hideLabel handling
Browse files Browse the repository at this point in the history
  • Loading branch information
sakazuki committed Nov 3, 2019
1 parent 22dd2cd commit 981a9c4
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3063,7 +3063,11 @@ RED.view = (function() {
var l = RED.utils.getNodeLabel(d);
var ow = d.w;
if (vertical) {
d.w = Math.max(node_width,20*(Math.ceil((calculateTextWidth(l, "red-ui-flow-node-label", 50)+(d._def.inputs>0?7:0))/20)),(d.outputs||0) * 15 );
if (hideLabel) {
d.w = node_height
} else {
d.w = Math.max(node_width,20*(Math.ceil((calculateTextWidth(l, "red-ui-flow-node-label", 50)+(d._def.inputs>0?7:0))/20)),(d.outputs||0) * 15 );
}
d.h = node_height;
}else{
if (hideLabel) {
Expand Down

0 comments on commit 981a9c4

Please sign in to comment.