mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 07:42:02 +00:00
* 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:
parent
3941b00ec7
commit
0364c6c3cb
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user