aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-header.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-05-26 03:27:46 +0800
committerChris Lahey <clahey@src.gnome.org>2000-05-26 03:27:46 +0800
commit60f52f5eaedd302180188c671ab9298b23119930 (patch)
treec1982dcc66640dfecf8b90e71315a41db1042521 /widgets/table/e-table-header.c
parentd306c2932807d068f453196abd3ca39580c4039a (diff)
downloadgsoc2013-evolution-60f52f5eaedd302180188c671ab9298b23119930.tar
gsoc2013-evolution-60f52f5eaedd302180188c671ab9298b23119930.tar.gz
gsoc2013-evolution-60f52f5eaedd302180188c671ab9298b23119930.tar.bz2
gsoc2013-evolution-60f52f5eaedd302180188c671ab9298b23119930.tar.lz
gsoc2013-evolution-60f52f5eaedd302180188c671ab9298b23119930.tar.xz
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/table/e-table-header.c')
-rw-r--r--widgets/table/e-table-header.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/widgets/table/e-table-header.c b/widgets/table/e-table-header.c
index b438226153..f1066f745c 100644
--- a/widgets/table/e-table-header.c
+++ b/widgets/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;