fix for issue #399

This commit is contained in:
ErrorFlynn 2019-03-07 04:36:27 -05:00 committed by GitHub
parent 4fa1618f48
commit fd8261c6a2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -235,6 +235,14 @@ checkbox& group::add_option(std::string text)
group& group::enable_format_caption(bool format) group& group::enable_format_caption(bool format)
{ {
impl_->caption.format(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; return *this;
} }