diff --git a/source/gui/widgets/group.cpp b/source/gui/widgets/group.cpp index f1ca7821..9bb62ff1 100644 --- a/source/gui/widgets/group.cpp +++ b/source/gui/widgets/group.cpp @@ -235,6 +235,14 @@ checkbox& group::add_option(std::string text) group& group::enable_format_caption(bool format) { impl_->caption.format(format); + + // if the caption is already set, make sure the layout is updated + if(!caption().empty()) + { + impl_->update_div(); + impl_->place_content.collocate(); + API::refresh_window(*this); + } return *this; }