]> git.lyx.org Git - features.git/commit
branch: Make the scrolling for large insets more naturally (bug #7662)
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 26 Oct 2011 13:35:49 +0000 (13:35 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 26 Oct 2011 13:35:49 +0000 (13:35 +0000)
commit93ba21cd5a5db46784132d538201a9114d18ab8b
tree6f3df05d6c1b815ae01341c50c914d43d8c04847
parent269e688857023606f99c9ccde50e3b53a3221af8
branch: Make the scrolling for large insets more naturally (bug #7662)

The patch fixes a case that I had forgotten. Namely, the case that when the height of a row was larger than the height of the screen and that the cursor is already visible. That's why I added a new if case to catch all situations in which the row height is larger than the height of the screen. If we then need scrolling we scroll to height/4 and 3*height/4. In the end, the height_/4 and 3*height_/4 should be replaced by the rowheights in the inset, but we need some extra infrastructure for that.

see r39697.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@40010 a592a061-630c-0410-9148-cb99ea01b6c8
src/BufferView.cpp