<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>118584</bug_id>
          
          <creation_ts>2005-12-18 18:59:42 +0000</creation_ts>
          <short_desc>scroll position not upgrading</short_desc>
          <delta_ts>2006-06-26 12:47:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kate</product>
          <component>part</component>
          <version>unspecified</version>
          <rep_platform>unspecified</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Becheru Petru-Ioan">becheru.petru.ioan</reporter>
          <assigned_to name="KWrite Developers">kwrite-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>399663</commentid>
    <comment_count>0</comment_count>
    <who name="Becheru Petru-Ioan">becheru.petru.ioan</who>
    <bug_when>2005-12-18 18:59:42 +0000</bug_when>
    <thetext>Version:           unknown (using KDE 3.5.0, Debian Package 4:3.5.0-1 (testing/unstable))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.8-2-386

open a document that will activate scrollbar(this means that the file has more lines than the editor can show so it will use a scrollbar). Move the cursor to an upper line(first, second ,third). Use &quot;scroll line down&quot; (sc:Control + Down Arrow) until bottom.now use arrows and move the cursor 1 position(just one keypress!). The cursor is shown where it suppose it would be (in the upper lines) BUT the scrollbar is still down. U can move in the view left /right without scrollbar to move from bottom. If u go upper than first line shown or lower than last line shown the scrollbar will be in the right position again.
Notes:
- it works only when u &quot;scroll line down&quot; until end
- possible bug fix tip : update scrollbar position everytime the cursor moves or see what happens when it reaches bottom</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>399676</commentid>
    <comment_count>1</comment_count>
    <who name="Anders Lund">anderslund</who>
    <bug_when>2005-12-18 19:40:51 +0000</bug_when>
    <thetext>On Sunday 18 December 2005 18:59, zvonSully wrote:
&gt; Summary: scroll position not upgrading


Following the instruction, everything works correctly here.

-anders
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>401193</commentid>
    <comment_count>2</comment_count>
    <who name="Becheru Petru-Ioan">becheru.petru.ioan</who>
    <bug_when>2005-12-23 23:26:59 +0000</bug_when>
    <thetext>Sorry for my English :
-&quot;Move the cursor to an upper line(first, second ,third)&quot; should be &quot;Move the cursor to an upper line(first, second  OR third LINE)&quot;
-&quot;now use arrows&quot; should be &quot;now use LEFT or RIGHT arrows&quot;
Here is the new text:
Open a document that will activate scrollbar(this means that the file has more lines than the editor can show so it will use a scrollbar). Move the cursor to an upper line(first, second OR third LINE). Use &quot;scroll line down&quot; (sc:Control + Down Arrow) until bottom. Now use RIGHT or LEFT arrows and move the cursor 1 position(just one keypress!)(BEWARE TO MOVE THE CURSOR SO IT DOES NOT GO TO ANOTHER LINE (KEEP ON THE SAME LINE) ). The cursor is shown where it suppose it would be (in the upper lines) but the scrollbar is still down. U can move in the view left /right without scrollbar to move from bottom. If u go upper than first line shown or lower than last line shown the scrollbar will be in the right position again. 
 </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>403153</commentid>
    <comment_count>3</comment_count>
    <who name="Dominik Huber">huber_dominik</who>
    <bug_when>2006-01-02 17:47:00 +0000</bug_when>
    <thetext>I can confirm this behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>403156</commentid>
    <comment_count>4</comment_count>
    <who name="Dominik Huber">huber_dominik</who>
    <bug_when>2006-01-02 17:51:30 +0000</bug_when>
    <thetext>- Open a document that has so much text that the scrollbar appears
- Go with the cursor into the first line
- Press &quot;Ctrl + down arrow&quot; until you are at the end of the page
- Press left or right arrow

---&gt; The scrollbar stays at the botton, but the view is again in the first line.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>449791</commentid>
    <comment_count>5</comment_count>
    <who name="Andreas Kling">info</who>
    <bug_when>2006-06-26 12:45:01 +0000</bug_when>
    <thetext>SVN commit 555118 by kling:

Removed an old artifact that caused scrollbar flakiness when moving the cursor
while the view is scrolled to the very bottom and dynamic word-wrap is on.

BUG: 118584


 M  +1 -10     kateviewinternal.cpp  
 M  +0 -4      kateviewinternal.h  


--- branches/KDE/3.5/kdelibs/kate/part/kateviewinternal.cpp #555117:555118
@@ -76,7 +76,6 @@
   , m_scrollTimer (this)
   , m_cursorTimer (this)
   , m_textHintTimer (this)
-  , m_maximizeLineScroll (false)
   , m_textHintEnabled(false)
   , m_textHintMouseX(-1)
   , m_textHintMouseY(-1)
@@ -390,9 +389,6 @@
   if (c &gt; limit) {
     c = limit;
 
-    if (m_view-&gt;dynWordWrap())
-      m_maximizeLineScroll = true;
-
     // Re-check we&apos;re not just scrolling to the same place
     if (!force &amp;&amp; ((!m_view-&gt;dynWordWrap() &amp;&amp; c.line() == (int)startLine()) || c == startPos()))
       return;
@@ -487,12 +483,7 @@
     maxLineScrollRange++;
   m_lineScroll-&gt;setRange(0, maxLineScrollRange);
 
-  if (m_view-&gt;dynWordWrap() &amp;&amp; m_maximizeLineScroll) {
-    m_maximizeLineScroll = false;
-    m_lineScroll-&gt;setValue(maxStart.line());
-  } else {
-    m_lineScroll-&gt;setValue(startPos().line());
-  }
+  m_lineScroll-&gt;setValue(startPos().line());
   m_lineScroll-&gt;setSteps(1, height() / m_view-&gt;renderer()-&gt;fontHeight());
   m_lineScroll-&gt;blockSignals(false);
 
--- branches/KDE/3.5/kdelibs/kate/part/kateviewinternal.h #555117:555118
@@ -362,10 +362,6 @@
     static const int scrollTime = 30;
     static const int scrollMargin = 16;
 
-    // dyn wrap mode:
-    // used to set the lineScroll to the max value
-    bool m_maximizeLineScroll;
-
   private slots:
     void scrollTimeout ();
     void cursorTimeout ();
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>449792</commentid>
    <comment_count>6</comment_count>
    <who name="Andreas Kling">info</who>
    <bug_when>2006-06-26 12:47:06 +0000</bug_when>
    <thetext>SVN commit 555120 by kling:

Forward-port SVN commit 555118 by kling: 
 
Removed an old artifact that caused scrollbar flakiness when moving the cursor 
while the view is scrolled to the very bottom and dynamic word-wrap is on. 
    
CCBUG: 118584 


 M  +1 -12     kateviewinternal.cpp  
 M  +0 -4      kateviewinternal.h  


--- trunk/KDE/kdelibs/kate/part/kateviewinternal.cpp #555119:555120
@@ -84,7 +84,6 @@
   , m_scrollTimer (this)
   , m_cursorTimer (this)
   , m_textHintTimer (this)
-  , m_maximizeLineScroll(false)
   , m_textHintEnabled(false)
   , m_textHintMouseX(-1)
   , m_textHintMouseY(-1)
@@ -440,11 +439,6 @@
   if (c &gt; limit) {
     c = limit;
 
-    // overloading this variable, it&apos;s not used in non-word wrap
-    // used to set the lineScroll to the max value
-    if (m_view-&gt;dynWordWrap())
-      m_maximizeLineScroll = true;
-
     // Re-check we&apos;re not just scrolling to the same place
     if (!force &amp;&amp; ((!m_view-&gt;dynWordWrap() &amp;&amp; c.line() == (int)startLine()) || c == startPos()))
       return;
@@ -546,12 +540,7 @@
     maxLineScrollRange++;
   m_lineScroll-&gt;setRange(0, maxLineScrollRange);
 
-  if (m_view-&gt;dynWordWrap() &amp;&amp; m_maximizeLineScroll) {
-    m_maximizeLineScroll = false;
-    m_lineScroll-&gt;setValue(maxStart.line());
-  } else {
-    m_lineScroll-&gt;setValue(startPos().line());
-  }
+  m_lineScroll-&gt;setValue(startPos().line());
   m_lineScroll-&gt;setSingleStep(1);
   m_lineScroll-&gt;setPageStep(height() / renderer()-&gt;fontHeight());
   m_lineScroll-&gt;blockSignals(false);
--- trunk/KDE/kdelibs/kate/part/kateviewinternal.h #555119:555120
@@ -366,10 +366,6 @@
     static const int s_scrollTime = 30;
     static const int s_scrollMargin = 16;
 
-    // dyn wrap mode:
-    // used to set the lineScroll to the max value
-    bool m_maximizeLineScroll;
-
   private Q_SLOTS:
     void scrollTimeout ();
     void cursorTimeout ();
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>