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

Bug 147160

Summary: ViewUtil makes incorrect reposition of container's child
Product: [Modeling] GMF-Runtime Reporter: Vyacheslav Zakovyrya <vyach.zak>
Component: GeneralAssignee: Inbox <gmf.runtime.diagram-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: mmostafa
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Windows XP   
Whiteboard:

Description Vyacheslav Zakovyrya CLA 2006-06-14 19:45:18 EDT
ViewUtil#repositionChildAt makes reposition of child following way:
	container.removeChild(child);
	container.insertChildAt(child, newIndex);
but should be something like this:
	container.removeChild(child);
	container.insertChildAt(child, newIndex > container.getChildren().indexOf(child) ? newIndex - 1 : newIndex);
Comment 1 Vyacheslav Zakovyrya CLA 2006-06-14 19:55:29 EDT

*** This bug has been marked as a duplicate of 147159 ***
Comment 2 Eclipse Webmaster CLA 2010-07-19 12:28:53 EDT
[GMF Restructure] Bug 319140 : product GMF and component
Runtime Diagram was the original product and component for this bug