diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-05-26 03:27:46 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-05-26 03:27:46 +0800 |
commit | 60f52f5eaedd302180188c671ab9298b23119930 (patch) | |
tree | c1982dcc66640dfecf8b90e71315a41db1042521 /widgets/e-table/e-table-header.c | |
parent | d306c2932807d068f453196abd3ca39580c4039a (diff) | |
download | gsoc2013-evolution-60f52f5eaedd302180188c671ab9298b23119930.tar.gz gsoc2013-evolution-60f52f5eaedd302180188c671ab9298b23119930.tar.zst gsoc2013-evolution-60f52f5eaedd302180188c671ab9298b23119930.zip |
Account for extra pixel at right end of ETable.
2000-05-25 Christopher James Lahey <clahey@helixcode.com>
* 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
Diffstat (limited to 'widgets/e-table/e-table-header.c')
-rw-r--r-- | widgets/e-table/e-table-header.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/e-table/e-table-header.c b/widgets/e-table/e-table-header.c index b438226153..f1066f745c 100644 --- a/widgets/e-table/e-table-header.c +++ b/widgets/e-table/e-table-header.c @@ -511,7 +511,8 @@ eth_set_size (ETableHeader *eth, int idx, int size) for (i = 0; i < idx; i++) { left_width += eth->columns[i]->width; } - usable_width = eth->width - left_width; + /* - 1 to account for the last pixel border. */ + usable_width = eth->width - left_width - 1; if (eth->sort_info) usable_width -= e_table_sort_info_grouping_get_count(eth->sort_info) * GROUP_INDENT; @@ -631,7 +632,8 @@ eth_calc_widths (ETableHeader *eth) int extra, extra_left; double expansion; int last_resizeable = -1; - extra = eth->width; + /* - 1 to account for the last pixel border. */ + extra = eth->width - 1; expansion = 0; for (i = 0; i < eth->col_count; i++) { extra -= eth->columns[i]->min_width; |