From 62a1db47566e1f31a9140fc8e8a3e35733a4e5ad Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Wed, 10 Dec 2014 15:37:52 -0500 Subject: Wrote up the hscroll code. Not sure why it doesn't work yet. Not yet applied to headers or drawing. --- wintable/new/header.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wintable/new/header.h') diff --git a/wintable/new/header.h b/wintable/new/header.h index b992235..ba2d4d4 100644 --- a/wintable/new/header.h +++ b/wintable/new/header.h @@ -68,8 +68,8 @@ static void updateTableWidth(struct table *t) panic("error getting Table column width for updateTableWidth()"); t->width += item.cxy; } - // TODO replace this with a call to hscrollby(t, 0) - recomputeHScroll(t); + // do a dummy scroll to update the horizontal scrollbar to use the new width + hscrollby(t, 0); } HANDLER(headerNotifyHandler) -- cgit v1.2.3