commit f41ca959fd531cd955bce778f2734f2a3ff1ee14
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Tue Dec 1 12:01:20 2020 +0100

    Reduce top/bottom margin for Adv F&R workareas
---
 src/BufferView.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index ea841a0..f7567bd 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -351,15 +351,15 @@ int BufferView::leftMargin() const
 
 int BufferView::topMargin() const
 {
-       // original value was 20px, which is 0.2in at 100dpi
-       return zoomedPixels(20);
+       // Original value was 20px at 100dpi. For internal buffers like in
+       // advanced search and replace, a value of 5px is enough.
+       return zoomedPixels(buffer().isInternal() ? 5 : 20);
 }
 
 
 int BufferView::bottomMargin() const
 {
-       // original value was 20px, which is 0.2in at 100dpi
-       return zoomedPixels(20);
+       return topMargin();
 }
 
 
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to