From 6eb275ff1f9dae2e675ebc2348df07185dc0701b Mon Sep 17 00:00:00 2001 From: cxl Date: Tue, 6 Aug 2013 21:45:35 +0000 Subject: [PATCH] CtrlLib: ColumnList::ItemWidth/Height now updates scrollbar git-svn-id: svn://ultimatepp.org/upp/trunk@6234 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/CtrlLib/ColumnList.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uppsrc/CtrlLib/ColumnList.h b/uppsrc/CtrlLib/ColumnList.h index 7ee13aa02..fb5291235 100644 --- a/uppsrc/CtrlLib/ColumnList.h +++ b/uppsrc/CtrlLib/ColumnList.h @@ -183,9 +183,9 @@ public: ColumnList& ColumnMode() { return Mode(MODE_COLUMN); } ColumnList& Columns(int _n) { ncl = _n; Refresh(); return *this; } int GetColumns() const { return ncl; } - ColumnList& ItemHeight(int _cy) { cy = _cy; RefreshLayout(); Refresh(); return *this; } + ColumnList& ItemHeight(int _cy) { cy = _cy; RefreshLayout(); SetSb(); Refresh(); return *this; } int GetItemHeight() const { return cy; } - ColumnList& ItemWidth(int _cx) { cx = _cx; RefreshLayout(); Refresh(); return *this; } + ColumnList& ItemWidth(int _cx) { cx = _cx; RefreshLayout(); SetSb(); Refresh(); return *this; } int GetItemWidth() const { return cx; } ColumnList& RoundSize(bool b = true); ColumnList& NoRoundSize() { return RoundSize(false); }