aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-combo.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2004-08-12 13:10:42 +0800
committerMichael Zucci <zucchi@src.gnome.org>2004-08-12 13:10:42 +0800
commit89203ea5f65fa3a8a309dcde8dbeceb37f91b6cc (patch)
tree0b2d68d4fe43de732c22d39b972da9cb912b21f3 /widgets/table/e-cell-combo.c
parentbb426eb2595757b9800d8d99e8e01b7852355bbc (diff)
downloadgsoc2013-evolution-89203ea5f65fa3a8a309dcde8dbeceb37f91b6cc.tar.gz
gsoc2013-evolution-89203ea5f65fa3a8a309dcde8dbeceb37f91b6cc.tar.zst
gsoc2013-evolution-89203ea5f65fa3a8a309dcde8dbeceb37f91b6cc.zip
include scrollbar offset in vertical calculation. don't ask me i just work
2004-08-09 Not Zed <NotZed@Ximian.com> * 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
Diffstat (limited to 'widgets/table/e-cell-combo.c')
-rw-r--r--widgets/table/e-cell-combo.c10
1 files changed, 6 insertions, 4 deletions
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;