Git commit 413a980dd198da5fbf1e04f78c672f5452995de0 by K?re S?rs.
Committed on 13/07/2013 at 08:40.
Pushed by sars into branch 'master'.

Minimap: Top align the minimap in stead of center-align

BUG: 311420
FIXED-IN: KDE 4.12
GUI:

M  +1    -1    part/view/kateviewhelpers.cpp

http://commits.kde.org/kate/413a980dd198da5fbf1e04f78c672f5452995de0

diff --git a/part/view/kateviewhelpers.cpp b/part/view/kateviewhelpers.cpp
index a646346..bf6c89c 100644
--- a/part/view/kateviewhelpers.cpp
+++ b/part/view/kateviewhelpers.cpp
@@ -514,7 +514,7 @@ void KateScrollBar::miniMapPaintEvent(QPaintEvent *e)
 
   // calculate the document size and position
   int docHeight = qMin(grooveRect.height(), m_pixmap.height()*2) - 
2*docXMargin;
-  int yoffset = (grooveRect.height() - docHeight) / 2;
+  int yoffset = 0; // top-aligned in stead of center-aligned 
(grooveRect.height() - docHeight) / 2;
   QRect docRect(QPoint(grooveRect.left()+docXMargin, 
yoffset+grooveRect.top()), QSize(grooveRect.width()-2*docXMargin, docHeight));
   m_mapGroveRect = docRect;
 

Reply via email to