mirror of https://github.com/PCSX2/pcsx2.git
common: finally spot the text size bug
GetBestWrappedSize (hence the BestSize) computes the size of the wrapped text based on box side minus padding. So the width of the widget is already the good size for text wrapping
This commit is contained in:
parent
4ee942aba2
commit
9c598fcd01
|
@ -228,7 +228,6 @@ bool pxStaticText::_updateWrapping(bool textChanged)
|
|||
|
||||
wxString wrappedLabel;
|
||||
int newWidth = GetSize().GetWidth();
|
||||
newWidth -= (int)(newWidth * m_paddingPct_horiz * 2) + (m_paddingPix_horiz * 2);
|
||||
|
||||
if (!textChanged && (newWidth == m_wrappedWidth))
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue