Functional bug: can not scroll in window after code folding and indent

Claus Pedersen

Member³
I have a package body with approx. 300 lines of code:
Code:
CREATE OR REPLACE PACKAGE BODY test IS
  PROCEDURE test IS
  BEGIN
    IF 1=2 THEN
      NULL;
      NULL;
      <... 100 more lines goes here ...>
      NULL;
      NULL;
    ELSE
      NULL;
      NULL;
      <... 100 more lines goes here ...>
      NULL;
      NULL;
    END IF;
    NULL;
    NULL;
    <... 100 more lines goes here ...>
    NULL;
    NULL;
  END;
END;
With my screen resolution, the code fills approx. 5 screens (vertical scrollbar length 1/5).
I use code folding to collapse the IF structure (click on the small minus at line 4). Now the scrollbar length is approx. 1/2. This is OK.

I mark the code folded line and indents it. Now the code is unfolded again by PLD and the cursur is at the END IF part of the code. The scroll bar is still 1/2. I use the scroll button on the mouse to scroll to the top. I can not use the scroll button on the mouse to navigate to the end of the package. I am stuck in the topmost part of the package (until approx. the ELSE part). I can use the keyboard to navigate (PageUp, PageDown and arrow keys), but scrollbar does not work. It seems that the scrollbar is not updated when PLD expands the code again.

If I collapse the entire procedure, mark and indent it, the scroll bar disappears totally and never returns in the same program window.

If I use other functionality, for instance Edit -> Selection -> Lowercase, the code is still expanded, but the scrolling works as expected.

This bug would be nice to have fixed in version 8.

BTW: in my opinion, PLD should not expand the folded code, even after an operation.
 
That is indeed not right. The scrollbar range is apparently not updated when the code is implicitly unfolded due to an operation. We'll fix it.
 
Back
Top