Index: gnucash-item-edit.c
===================================================================
--- gnucash-item-edit.c	(revision 18639)
+++ gnucash-item-edit.c	(working copy)
@@ -310,18 +310,19 @@
                 info->hatch_rect.height = hd;
         }
 
+        gnc_item_edit_update_offset (item_edit, info);
+
 	/* Calcurate IMContext aux window position */
 	{
 		gint xoff, yoff;
 		GdkRectangle rect;
 		rect = info->cursor_rect;
 		gnome_canvas_get_scroll_offsets(GNOME_CANVAS(sheet), &xoff, &yoff);
-		rect.x += (x - xoff);
+		rect.x += (x - xoff + item_edit->x_offset);
 		rect.y += (y - yoff);
 		gtk_im_context_set_cursor_location (sheet->im_context, &rect);
 	}
 
-        gnc_item_edit_update_offset (item_edit, info);
 }
 
 static void
