Bo Peng wrote:
Sure, just replace update() with updateMetrics(false) in the resize method.


Does not work. Please have a look with

1. start lyx, open tutorial
2. scroll down with mouse (not page down)
3. resize.

lyx should not scroll back to textcursor.

Indeed, this is because there's a second update() call in workAreaResize(), the attached is solving that.

Abdel.
Index: BufferView.C
===================================================================
--- BufferView.C        (revision 16277)
+++ BufferView.C        (working copy)
@@ -302,7 +302,7 @@
        lyxerr[Debug::DEBUG] << BOOST_CURRENT_FUNCTION << endl;
 
        buffer_->text().init(this);
-       update();
+       updateMetrics(false);
        switchKeyMap();
 }
 
@@ -1022,8 +1022,6 @@
 
        if (buffer_)
                resize();
-
-       update();
 }
 
 

Reply via email to