From f6e10c65f51df5b6c56f70630552bddc8702469e Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 16 Oct 2019 19:05:44 +0400 Subject: [PATCH] Fix GenericBox content size. --- ui/layers/box_layer_widget.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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 {