adjust XIM spot location code scince we change the nsCaret to return the bottom of the cursor intead of the top of the cursor ow. It look a little bit weired since the GFX didn't alight Japanese text base line right. r=erik

This commit is contained in:
ftang%netscape.com 1999-11-11 00:58:14 +00:00
Родитель ddab7e05d7
Коммит 5c0c5ef12e
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -2683,7 +2683,11 @@ nsWidget::GetXYFromPosition(unsigned long *aX,
mIC->mask = GDK_IC_PREEDIT_FONTSET; // hack
gdk_ic_get_attr((GdkIC*)mIC, attr, attrMask);
if (attr->preedit_fontset) {
*aY += attr->preedit_fontset->ascent;
// this is currently not working well
// We change from += ascent to -= descent because we change the nsCaret
// code to return the nsPoint from the top of the cursor to the bottom
// of the cursor
*aY -= attr->preedit_fontset->descent;
}
gdk_ic_attr_destroy(attr);
return;