diff --git a/docs/changes.txt b/docs/changes.txt index a57f7068a1..cbf1c9cf12 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -134,6 +134,7 @@ wxGTK: - Implement wxDataViewColumn::UnsetAsSortKey(). - Fix not showing wxInfoBar with GTK+ 3 < 3.22.29. - Fix the build with glib < 2.32 (e.g. CentOS 6). +- Fix field widths in wxStatusBar showing a size grip. wxMSW: diff --git a/src/generic/statusbr.cpp b/src/generic/statusbr.cpp index c0581dd679..eecc549de6 100644 --- a/src/generic/statusbr.cpp +++ b/src/generic/statusbr.cpp @@ -184,8 +184,12 @@ void wxStatusBarGeneric::DoUpdateFieldWidths() { m_lastClientSize = GetClientSize(); + int width = m_lastClientSize.x; + if ( ShowsSizeGrip() ) + width -= GetSizeGripRect().width; + // recompute the cache of the field widths if the status bar width has changed - m_widthsAbs = CalculateAbsWidths(m_lastClientSize.x); + m_widthsAbs = CalculateAbsWidths(width); } bool wxStatusBarGeneric::ShowsSizeGrip() const