* Make sure the cursor is completely visible when the BufferView get's its initial size.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22786 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Stefan Schimanski 2008-02-05 13:14:53 +00:00
parent 3941b00ec7
commit 0364c6c3cb

View File

@ -1336,6 +1336,8 @@ void BufferView::clearSelection()
void BufferView::resize(int width, int height)
{
bool initialResize = (height_ == 0);
// Update from work area
width_ = width;
height_ = height;
@ -1344,6 +1346,13 @@ void BufferView::resize(int width, int height)
d->par_height_.clear();
updateMetrics();
// view got his initial size, make sure that
// the cursor has a proper position
if (initialResize) {
updateScrollbar();
showCursor();
}
}