From fe76a303d84173aa93c136abc8296bf29132cf3c Mon Sep 17 00:00:00 2001 From: Jinhao Date: Fri, 17 Jun 2016 02:43:40 +0800 Subject: [PATCH] add refresh to listbox column operations --- source/gui/widgets/listbox.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/gui/widgets/listbox.cpp b/source/gui/widgets/listbox.cpp index ced6fe24..1726c2b3 100644 --- a/source/gui/widgets/listbox.cpp +++ b/source/gui/widgets/listbox.cpp @@ -552,11 +552,18 @@ namespace nana range_width_px.first = minimum; range_width_px.second = maximum; + + if (width_px < range_width_px.first || range_width_px.second > width_px) + _m_refresh(); } void text_align(::nana::align align) noexcept override { - alignment = align; + if (alignment != align) + { + alignment = align; + _m_refresh(); + } } //Definition is provided after essence