]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.cpp
grammar
[lyx.git] / src / BufferView.cpp
index 6063168380f7236060fabf7a67165da29e7f95f3..0025277e5330406ae1d33eda3113ebf668c3884b 100644 (file)
@@ -349,6 +349,20 @@ int BufferView::leftMargin() const
 }
 
 
+int BufferView::topMargin() const
+{
+       // 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
+{
+       return topMargin();
+}
+
+
 int BufferView::inPixels(Length const & len) const
 {
        Font const font = buffer().params().getFont();