Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324982 - Line numbering ruler is not scrolled after unfolding
Summary: Line numbering ruler is not scrolled after unfolding
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-10 11:18 EDT by Petyo Tanchev CLA
Modified: 2020-05-14 11:37 EDT (History)
1 user (show)

See Also:


Attachments
initial condition (64.14 KB, image/png)
2010-09-10 11:21 EDT, Petyo Tanchev CLA
no flags Details
item folded (64.33 KB, image/png)
2010-09-10 11:22 EDT, Petyo Tanchev CLA
no flags Details
item unfolded again (64.30 KB, image/png)
2010-09-10 11:22 EDT, Petyo Tanchev CLA
no flags Details
after scroll down (64.34 KB, image/png)
2010-09-10 11:23 EDT, Petyo Tanchev CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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