Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 142084 - bugzilla editor comment layout
Summary: bugzilla editor comment layout
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Robert Elves CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-16 16:31 EDT by Robert Elves CLA
Modified: 2008-09-24 01:37 EDT (History)
5 users (show)

See Also:


Attachments
example patch to fix layout for editable descriptions (3.84 KB, patch)
2007-11-26 21:22 EST, Steffen Pingel CLA
no flags Details | Diff
mylyn/context/zip (6.08 KB, application/octet-stream)
2007-11-26 21:22 EST, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Elves CLA 2006-05-16 16:31:33 EDT
The current layout uses a combination of form sections with TextViewer objects (for displaying text with hyperlink detection and highlighting). We're using the fill horizontal layout which causes the text to wrap nicely when the editor is resized but it leaves excess space at the bottom of the form. One option may be to make the comments a default height and make them scrollable.
Comment 1 Mik Kersten CLA 2006-05-16 17:55:59 EDT
There is also excessive space under the comments, and the Description section should be collapsable.  Both problems are manifest on bug 140473.  I'm marking this P1 since we can't put out 0.5.2 with these layout problems.

I don't think that making each comment a default height makes sense, because it will mean that we need to scroll mutliple times just to browse through a bug report.  Any other ideas?

Comment 2 Mik Kersten CLA 2006-05-16 18:28:51 EDT
Given the fact that redraw error occasionally occur, I wonder if there is some inconsistency in the way that the size of the editor areas and comments is set. 
Comment 3 Robert Elves CLA 2006-05-16 18:43:51 EDT
Yes, it appears as thought the vertical size is originally calculated and drawn based on how the text would fall given the widthHint. When the editor is resized, the vertical height of the text is reduced but the composite holds onto the dead white space. If we get rid of the widthHint the text areas expand all the way out to the newline which isn't nice either.
Comment 4 Mik Kersten CLA 2006-05-16 20:08:06 EDT
So do you have any ideas beyond going back to fixed widths (which we will most likely need to do if the spacing issue doesn't get resolved)?

I'm CC'ing Brock in case he has encountered this sort of form/viewer layout problem or has any ideas. 
Comment 5 Mik Kersten CLA 2006-05-16 20:37:28 EDT
Also, "Expand All" has the wrong background.  Instead of the text use the TaskListImages.EXPAND_ALL icon.  
Comment 6 Brock Janiczak CLA 2006-05-16 20:49:06 EDT
Does the Jira editor work as you expected?  If so, I used a control listener to re-layout the entire page when the width changed (which can cause the height to cahnge as well).  Making a collapsible section have a maximum size was really tricky.  The client control will alway be its preferred size.  If you wrap your text control in a composite and specify a height hint on the text control it works ok.
Comment 7 Robert Elves CLA 2006-05-17 19:14:04 EDT
Still having problems with grabHorizontal/widthHint combination taking up extra space (when not using scrolling composite). Making description a fixed width for now.
Comment 8 Robert Elves CLA 2006-12-12 13:25:28 EST
*** Bug 167645 has been marked as a duplicate of this bug. ***
Comment 9 Steffen Pingel CLA 2007-11-26 21:22:33 EST
Created attachment 83834 [details]
example patch to fix layout for editable descriptions
Comment 10 Steffen Pingel CLA 2007-11-26 21:22:35 EST
Created attachment 83835 [details]
mylyn/context/zip
Comment 11 Robert Elves CLA 2008-09-24 01:37:34 EDT
David Green has taken on further improvements.