mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-27 11:52:25 +00:00
following revert of 23068: Better fix for bug 4044
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23076 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
42d707773d
commit
2a42f56b4e
@ -1357,23 +1357,16 @@ void BufferView::clearSelection()
|
|||||||
|
|
||||||
void BufferView::resize(int width, int height)
|
void BufferView::resize(int width, int height)
|
||||||
{
|
{
|
||||||
bool initialResize = (height_ == 0);
|
|
||||||
|
|
||||||
// Update from work area
|
// Update from work area
|
||||||
width_ = width;
|
width_ = width;
|
||||||
height_ = height;
|
height_ = height;
|
||||||
|
|
||||||
// Clear the paragraph height cache.
|
// Clear the paragraph height cache.
|
||||||
d->par_height_.clear();
|
d->par_height_.clear();
|
||||||
|
// Redo the metrics.
|
||||||
updateMetrics();
|
updateMetrics();
|
||||||
|
// Make sure the current cursor is visible.
|
||||||
// view got his initial size, make sure that
|
showCursor();
|
||||||
// the cursor has a proper position
|
|
||||||
if (initialResize) {
|
|
||||||
updateScrollbar();
|
|
||||||
showCursor();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user