From 89203ea5f65fa3a8a309dcde8dbeceb37f91b6cc Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 12 Aug 2004 05:10:42 +0000 Subject: include scrollbar offset in vertical calculation. don't ask me i just work 2004-08-09 Not Zed * e-cell-combo.c (e_cell_combo_get_popup_pos): include scrollbar offset in vertical calculation. don't ask me i just work here. see #61932. svn path=/trunk/; revision=26873 --- widgets/table/e-cell-combo.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'widgets/table') diff --git a/widgets/table/e-cell-combo.c b/widgets/table/e-cell-combo.c index 5ff8afef6a..1d7061e7dc 100644 --- a/widgets/table/e-cell-combo.c +++ b/widgets/table/e-cell-combo.c @@ -412,13 +412,15 @@ e_cell_combo_get_popup_pos (ECellCombo *ecc, y1, &wx, &wy); + x1 = wx; y1 = wy; - + *x += x1; - /* The ETable positions don't include the grid lines, I think, so we - add 1. */ - *y += y1 + 1; + /* The ETable positions don't include the grid lines, I think, so we add 1. */ + *y += y1 + 1 + - (int)((GnomeCanvas *)canvas)->layout.vadjustment->value + + ((GnomeCanvas *)canvas)->zoom_yofs; scrollbar_width = popup->vscrollbar->requisition.width + GTK_SCROLLED_WINDOW_CLASS (GTK_OBJECT_GET_CLASS (popup))->scrollbar_spacing; -- cgit