Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 324982

Summary: Line numbering ruler is not scrolled after unfolding
Product: z_Archived Reporter: Petyo Tanchev <petyo_tanchev>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: zulus
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
initial condition
none
item folded
none
item unfolded again
none
after scroll down none

Description Petyo Tanchev CLA 2010-09-10 11:18:14 EDT
Found on 2.2.1.v20100906

1. You need to have some longer code, so the editor window must have a scroll.
2. In the end of the code, use these lines

function func1($dd){
	$abc = 'string';
	echo $abc;	
}
function func2($dddd){
	$abc = 'string';
	$def = 'string';
	echo $abc;
	echo $def;
}

The key point is that the next to the last foldable item (function or PHPdoc) should be 4 lines like func1().

3. Make sure that the scroll is moved to the end, so you see the last closing bracket of func2()
4. Fold func1() and the unfold it back
5. Now some lines are shifted down because of unfolding.
6. Scroll down with the mouse to see these lines and observe the line numbers on the left. They are not moving and all (-) signs become not on exact place.
7. Scroll up and when the line numbers match their positions all becomes OK again and numbers start to scroll with the lines.
Comment 1 Petyo Tanchev CLA 2010-09-10 11:21:49 EDT
Created attachment 178620 [details]
initial condition
Comment 2 Petyo Tanchev CLA 2010-09-10 11:22:17 EDT
Created attachment 178621 [details]
item folded
Comment 3 Petyo Tanchev CLA 2010-09-10 11:22:41 EDT
Created attachment 178622 [details]
item unfolded again
Comment 4 Petyo Tanchev CLA 2010-09-10 11:23:16 EDT
Created attachment 178623 [details]
after scroll down
Comment 5 Dawid Pakula CLA 2020-01-24 08:50:57 EST
Works fine, probably since years