Skip to content

Commit d9dd026

Browse files
committed
Client: Scale minimum Node width.
On high DPI displays, the minimum width of the Node was not scaled and too small. This commit will apply the Window's render scale to this minimum width.
1 parent 97350d2 commit d9dd026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Client/Controls/Node.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const char32_t* Node::Name() const
7474
void Node::Resize()
7575
{
7676
const OctaneGUI::Vector2 Size { ChildrenSize() };
77-
SetSize({ std::max(Size.X, 200.0f), Size.Y });
77+
SetSize({ std::max(Size.X, 200.0f * GetWindow()->RenderScale().X), Size.Y });
7878
}
7979

8080
//

0 commit comments

Comments
 (0)