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

Bug 17123

Summary: T2 preview view wraps lines after each word
Product: [Eclipse Project] Platform Reporter: Konrad Kolosowski <konradk>
Component: Update (deprecated - use Eclipse>Equinox>p2)Assignee: Wassim Melhem <wassim.melhem>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P2 CC: James_Moody
Version: 2.0   
Target Milestone: 2.0 F2   
Hardware: Sun   
OS: Solaris   
Whiteboard:
Attachments:
Description Flags
wrapped words none

Description Konrad Kolosowski CLA 2002-05-22 19:54:53 EDT
F1 build
After step T2 of the test the preview view show Alphabet Soup Fun Pack - 
Numbers with the description that is drawn a word per line
Comment 1 Konrad Kolosowski CLA 2002-05-22 19:55:23 EDT
Created attachment 976 [details]
wrapped words
Comment 2 Konrad Kolosowski CLA 2002-05-23 20:08:55 EDT
same problem on AIX
Comment 3 Vlad Klicnik CLA 2002-05-24 12:26:10 EDT
*** Bug 16670 has been marked as a duplicate of this bug. ***
Comment 4 Dejan Glozic CLA 2002-05-29 15:20:54 EDT
Wassim, see if this is the same as those you already fixed.
Comment 5 Vlad Klicnik CLA 2002-05-29 15:22:17 EDT
Can reproduce defect also on Linux RH and SuSE. Just open the Eclipse update 
site and select a category. Does not lay out properly.
Comment 6 Wassim Melhem CLA 2002-05-31 15:31:36 EDT
Fixed.  Look for the fix in the 2.0 F2 driver.

Here is a brief explanation of what was causing the problem on platforms other 
than Windows:
Our implementation creates only ONE instance of the Category form, and every 
time the user clicks on a different site category, we update the header of that 
form and the body text with those of the currently selected category.  We then 
refresh the page and its components.
This worked fine on Windows, but not on other platforms.
On those platforms, with every new category selection, when we called the 
method setText(newText) on the text label, the text label's width and height 
were not being resized.  That is why you see words wrapping around.  Its' 
because the new (longer) text does not fit properly within the boundaries of 
the original text label.

I fixed the problem as follows:
Every time the user changes the selection of the category, I dispose the old 
text label, and create a new one with the new text inside it.
Comment 7 Konrad Kolosowski CLA 2002-06-18 14:12:55 EDT
Verified in F4.