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
This commit is contained in:
Not Zed
2004-08-12 05:10:42 +00:00
committed by Michael Zucci
parent bb426eb259
commit 89203ea5f6

View File

@ -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;