Resolved an issue where node width expanded infinitely during window dragging across multi‑display screens with different scaling factors.This problem was caused by inaccurate width calculation of placeholder elements.The width calculation for nodes now uses an adaptive approach.
This commit is contained in:
@@ -190,6 +190,9 @@ public:
|
||||
// 接口测试节点
|
||||
class Connector_Test_Node : public Abs_Node
|
||||
{
|
||||
private:
|
||||
float node_width = 0;
|
||||
|
||||
public:
|
||||
// 显式禁用默认构造
|
||||
Connector_Test_Node() = delete;
|
||||
@@ -209,6 +212,9 @@ public:
|
||||
// DLT信息输入类,起始点
|
||||
class MSG_Input_Node : public Abs_Node
|
||||
{
|
||||
private:
|
||||
float node_width = 0;
|
||||
|
||||
public:
|
||||
// 显式禁用默认构造
|
||||
MSG_Input_Node() = delete;
|
||||
|
||||
Reference in New Issue
Block a user