mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-12 22:14:35 +00:00
fix "cursor moving out of visible area" in large formulas
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@3203 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6a53128822
commit
06fbab0b77
@ -209,16 +209,17 @@ void InsetFormulaBase::showInsetCursor(BufferView * bv, bool)
|
|||||||
if (isCursorVisible())
|
if (isCursorVisible())
|
||||||
return;
|
return;
|
||||||
if (mathcursor) {
|
if (mathcursor) {
|
||||||
|
metrics(bv);
|
||||||
int x;
|
int x;
|
||||||
int y;
|
int y;
|
||||||
mathcursor->getPos(x, y);
|
mathcursor->getPos(x, y);
|
||||||
|
y -= yo_;
|
||||||
int asc = 0;
|
int asc = 0;
|
||||||
int des = 0;
|
int des = 0;
|
||||||
MathMetricsInfo mi(bv, font_, display() ? LM_ST_DISPLAY : LM_ST_TEXT);
|
MathMetricsInfo mi(bv, font_, display() ? LM_ST_DISPLAY : LM_ST_TEXT);
|
||||||
math_font_max_dim(LM_TC_TEXTRM, mi, asc, des);
|
math_font_max_dim(LM_TC_TEXTRM, mi, asc, des);
|
||||||
//bv->fitLockedInsetCursor(x, y, asc, des);
|
bv->fitLockedInsetCursor(x, y, asc, des);
|
||||||
//metrics(bv);
|
//lyxerr << "showInsetCursor: x: " << x << " y: " << y << "\n";
|
||||||
//lyxerr << "showInsetCursor: " << x << " " << y << "\n";
|
|
||||||
}
|
}
|
||||||
toggleInsetCursor(bv);
|
toggleInsetCursor(bv);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user