]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.cpp
Add empty InsetLayout for undefined cases. Should avoid possible bugs caused by empty...
[lyx.git] / src / BufferView.cpp
index 50d7f086f30707ac4727a785666ce24393831712..9abb3d7d1f4a86f2f1d18dbfaa45a946d7149117 100644 (file)
@@ -1357,24 +1357,14 @@ void BufferView::clearSelection()
 
 void BufferView::resize(int width, int height)
 {
-       bool initialResize = (height_ == 0);
-       
        // Update from work area
        width_ = width;
        height_ = height;
 
        // Clear the paragraph height cache.
        d->par_height_.clear();
-
+       // Redo the metrics.
        updateMetrics();
-
-       // view got his initial size, make sure that
-       // the cursor has a proper position
-       if (initialResize) {
-               updateScrollbar();
-               showCursor();
-       }
-       processUpdateFlags(Update::Force | Update::FitCursor);
 }