Fix combo box vertical text alignment (#11217)

* init

* update condition

* Merge branch 'main' into fix-combobox-text

* Update TextInput.cpp
This commit is contained in:
yw4z
2025-11-09 15:40:30 +03:00
committed by GitHub
parent 394d1a330d
commit 4501bf6f57

View File

@@ -313,7 +313,7 @@ void TextInput::messureSize()
{
wxSize size = GetSize();
wxClientDC dc(this);
bool align_right = GetWindowStyle() & wxRIGHT;
bool align_right = GetWindowStyle() & wxALIGN_RIGHT;
if (align_right)
dc.SetFont(GetFont());
else