From 60f52f5eaedd302180188c671ab9298b23119930 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Thu, 25 May 2000 19:27:46 +0000 Subject: Account for extra pixel at right end of ETable. 2000-05-25 Christopher James Lahey * e-table-header.c: Account for extra pixel at right end of ETable. * e-table-item.c: Make grid less intrusive. * e-table.c: Make scrollbars disappear when appropriate. svn path=/trunk/; revision=3206 --- widgets/e-table/e-table.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'widgets/e-table/e-table.c') diff --git a/widgets/e-table/e-table.c b/widgets/e-table/e-table.c index 11826cd109..225880705b 100644 --- a/widgets/e-table/e-table.c +++ b/widgets/e-table/e-table.c @@ -171,9 +171,10 @@ table_canvas_reflow (GnomeCanvas *canvas, ETable *e_table) "height", &height, "width", &width, NULL); + /* I have no idea why this needs to be -1, but it works. */ gnome_canvas_set_scroll_region ( GNOME_CANVAS (e_table->table_canvas), - 0, 0, MAX(width, alloc->width), MAX (height, alloc->height)); + 0, 0, MAX((int)width, alloc->width) - 1, MAX ((int)height, alloc->height) - 1); } static void -- cgit v1.2.3