diff --git a/src/shell/panelview.cpp b/src/shell/panelview.cpp index fb4f56048..6b90be2b7 100644 --- a/src/shell/panelview.cpp +++ b/src/shell/panelview.cpp @@ -374,20 +374,13 @@ void PanelView::positionPanel() m_strutsTimer->stop(); m_strutsTimer->start(STRUTSTIMERDELAY); - if (thickness() != oldThickness) { - if (formFactor() == Plasma::Types::Vertical) { - setWidth(thickness()); - } else { - setHeight(thickness()); - } + if (formFactor() == Plasma::Types::Vertical) { + resize(thickness(), length()); + emit thicknessChanged(); + emit length(); + } else { + resize(length(), thickness()); emit thicknessChanged(); - } - if (length() != oldLength) { - if (formFactor() == Plasma::Types::Vertical) { - setHeight(length()); - } else { - setWidth(length()); - } emit length(); } }