diff --git a/ui/layers/box_layer_widget.cpp b/ui/layers/box_layer_widget.cpp index 4dd0604..a1e233b 100644 --- a/ui/layers/box_layer_widget.cpp +++ b/ui/layers/box_layer_widget.cpp @@ -56,8 +56,14 @@ BoxLayerWidget::BoxLayerWidget( BoxLayerWidget::~BoxLayerWidget() = default; void BoxLayerWidget::setLayerType(bool layerType) { + if (_layerType == layerType) { + return; + } _layerType = layerType; updateTitlePosition(); + if (_maxContentHeight) { + setDimensions(width(), _maxContentHeight); + } } int BoxLayerWidget::titleHeight() const {