aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-text.c
diff options
context:
space:
mode:
authorSimon Zheng <simon.zheng@sun.com>2006-03-01 16:02:57 +0800
committerSimon Zheng <simonz@src.gnome.org>2006-03-01 16:02:57 +0800
commite99cb76e5103de3859b7fe8ac7bbeef14b8df4ae (patch)
tree63377d07d75942ef5f8c5803a01266ed9cd3ce6a /widgets/table/e-cell-text.c
parentea0cdbe0b306dc2c00411ff0100c8743f8b2eb38 (diff)
downloadgsoc2013-evolution-e99cb76e5103de3859b7fe8ac7bbeef14b8df4ae.tar
gsoc2013-evolution-e99cb76e5103de3859b7fe8ac7bbeef14b8df4ae.tar.gz
gsoc2013-evolution-e99cb76e5103de3859b7fe8ac7bbeef14b8df4ae.tar.bz2
gsoc2013-evolution-e99cb76e5103de3859b7fe8ac7bbeef14b8df4ae.tar.lz
gsoc2013-evolution-e99cb76e5103de3859b7fe8ac7bbeef14b8df4ae.tar.xz
gsoc2013-evolution-e99cb76e5103de3859b7fe8ac7bbeef14b8df4ae.tar.zst
gsoc2013-evolution-e99cb76e5103de3859b7fe8ac7bbeef14b8df4ae.zip
** Fixes bug #331400
2006-03-01 Simon Zheng <simon.zheng@sun.com> ** Fixes bug #331400 * e-cell-text.c: (ect_print_height): Table item height is decided by the max cell height in item. And cell-text is just one of cells. As done by ect_print(), to leave some margin for text, 2 for footer, 2 for header, actual print height should be 16 + 4. svn path=/trunk/; revision=31617
Diffstat (limited to 'widgets/table/e-cell-text.c')
-rw-r--r--widgets/table/e-cell-text.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c
index db66f13550..a446a69522 100644
--- a/widgets/table/e-cell-text.c
+++ b/widgets/table/e-cell-text.c
@@ -1370,7 +1370,12 @@ ect_print_height (ECellView *ecell_view, GnomePrintContext *context,
int model_col, int view_col, int row,
double width)
{
- return 16;
+ /*
+ * Font size is 16 by default. To leave some margin for cell
+ * text area, 2 for footer, 2 for header, actual print height
+ * should be 16 + 4.
+` */
+ return 16 + 4;
}
static int