[Graph Panel] Fix collapsed node size change with UI scale.

This commit is contained in:
Tanasart 2025-03-01 14:45:10 +07:00
parent bb2247f415
commit d30b2bdf07
2 changed files with 3 additions and 3 deletions

Binary file not shown.

View file

@ -102,7 +102,7 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor {
min_w = w; min_w = w;
con_h = 128; con_h = 128;
h_param = h; h_param = h;
name_height = ui(16); name_height = 16;
custom_grid = 0; custom_grid = 0;
preserve_height_for_preview = false; preserve_height_for_preview = false;
@ -1621,11 +1621,11 @@ function Node(_x, _y, _group = noone) : __Node_Base(_x, _y) constructor {
if(_name == "") return; if(_name == "") return;
draw_name = true; draw_name = true;
var _si = _s// / UI_SCALE; var _si = _s / UI_SCALE;
var aa = (.25 + .5 * renderActive) * (.25 + .75 * isHighlightingInGraph()); var aa = (.25 + .5 * renderActive) * (.25 + .75 * isHighlightingInGraph());
var cc = getColor(); var cc = getColor();
var nh = previewable? name_height * _si : h * _si; var nh = previewable? name_height * _s : h * _s;
var ba = aa; var ba = aa;
if(_panel && _panel.node_hovering == self) ba = .1; if(_panel && _panel.node_hovering == self) ba = .1;