From fd8261c6a2b0aee6f7d6149258a55a862e88d915 Mon Sep 17 00:00:00 2001 From: ErrorFlynn Date: Thu, 7 Mar 2019 04:36:27 -0500 Subject: [PATCH] fix for issue #399 --- source/gui/widgets/group.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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; }