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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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