Bug 21834

Summary: Coolbar - deleting items corrupting layout
Product: [Eclipse Project] Platform Reporter: Lynne Kues <lynne_kues>
Component: SWTAssignee: Felipe Heidrich <eclipse.felipe>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: n.a.edgar
Version: 2.0   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Bug Depends on:    
Bug Blocks: 21883    
Attachments:
Description Flags
test case jar file
none
jar file with test code none

Description Lynne Kues CLA 2002-07-23 17:36:24 EDT
Build 200207161002

1. Run the attached test case.
2. Drag the Open Type coolitem to the second row (last coolItem).
3. Drag the Launch coolitem (last coolItem on first row) to the second row, put 
it after the Open Type item.
4. Drag the Search coolitem to the second row, put it after the Launch coolitem.
5. Drag the Script coolitem to the second row (last coolItem on first row), put 
it after the Search coolitem.
6. Press the Delete button.  This will delete the first item on the second 
row.  Notice that the second row is removed when the delete occurs.  The second 
row should remain.

1. Run the attached test case.
2. Drag the Script coolitem to the second row.
3. Drag the Launch coolitem to the second row, put it after the Script item.
4. Drag the Search coolitem to the second row, put it after the Launch coolitem.
5. Drag the Open Type coolitem to the second row, put it after the Search 
coolitem.
6. Press the Delete button.  This will delete the first item on the second 
row.  Notice that the Launch item is moved to the first row when the delete 
occurs.  The Launch item should stay on the second row.
Comment 1 Lynne Kues CLA 2002-07-23 17:36:50 EDT
Created attachment 1726 [details]
test case jar file
Comment 2 Lynne Kues CLA 2002-07-31 15:45:50 EDT
Attaching another test case.  In this scenario deleting the last item on a row 
causes items from the row above it to move down to the row below.   

1. Run test case.
2. Drag the Search icon to a new row.
3. Press the delete button, which will delete the Search cool item.

Notice that the items from the first row move to the second row.  The second 
row should just go away and the other items should remain as is.
Comment 3 Lynne Kues CLA 2002-07-31 15:47:25 EDT
Created attachment 1779 [details]
jar file with test code
Comment 4 Steve Northover CLA 2002-08-01 11:21:31 EDT
Fixed > 20020801
Comment 5 Lynne Kues CLA 2002-08-01 11:32:39 EDT
Is this fix in the 2.0.1 stream?  It needs to be.
Comment 6 Steve Northover CLA 2002-08-01 11:56:19 EDT
It will be when we get SWT starts a 2.0.1 stream.  Since MCQ is back Tuesday, 
I'm waiting for him to create the stream and OK all fixes that go into the 
stream.
Comment 7 Veronika Irvine CLA 2002-08-21 15:16:11 EDT
Fixed in 2.0.1