Fix #111788: Label width needs to use UI scale to match node width

For the label width the offset from the node width needs to be scaled by
`UI_SCALE_FAC`.

Pull Request: https://projects.blender.org/blender/blender/pulls/112047
This commit is contained in:
Lukas Tönne
2023-09-07 09:21:33 +02:00
parent 6a1ba2aca1
commit 8f21353b5d

View File

@@ -1857,7 +1857,7 @@ static void node_draw_panels(bNodeTree &ntree, const bNode &node, uiBlock &block
panel_decl->name.c_str(),
int(rct.xmin + NODE_MARGIN_X + 0.4f),
int(runtime.location_y - NODE_DYS),
short(rct.xmax - rct.xmin - 0.35f * U.widget_unit),
short(rct.xmax - rct.xmin - (30.0f * UI_SCALE_FAC)),
short(NODE_DY),
nullptr,
0,