diff --git a/applet.cpp b/applet.cpp index 0c94118d4..58e834aeb 100644 --- a/applet.cpp +++ b/applet.cpp @@ -1135,12 +1135,6 @@ void Applet::flushPendingConstraintsEvents() } else if (formFactor() == Vertical) { setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed)); } - } else { - if (formFactor() == Horizontal) { - setSizePolicy(QSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding)); - } else if (formFactor() == Vertical) { - setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred)); - } } updateGeometry(); }