Summary: | [Snippets] Customize Palette dialog does resize on selecting template | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [WebTools] WTP Common Tools | Reporter: | Benno Baumgartner <benno.baumgartner> | ||||||||||
Component: | Snippets Framework | Assignee: | Wang Chaobin <wangchaobin> | ||||||||||
Status: | ASSIGNED --- | QA Contact: | Konstantin Komissarchik <konstantin> | ||||||||||
Severity: | normal | ||||||||||||
Priority: | P3 | CC: | for.work.things, konstantin, shr31223, thatnitind, wangchaobin | ||||||||||
Version: | 2.0 | Flags: | shr31223:
review?
(konstantin) shr31223: review? (thatnitind) |
||||||||||
Target Milestone: | 3.7.1 | ||||||||||||
Hardware: | PC | ||||||||||||
OS: | Windows XP | ||||||||||||
Whiteboard: | |||||||||||||
Attachments: |
|
Description
Benno Baumgartner
2007-07-30 06:42:02 EDT
Created attachment 74914 [details]
screen shot
Created attachment 253961 [details]
screen shot
Also happened on Luna SR1.
When you type too much characters(ex. above 200) in step 3,
next time when you open [Customize Pelatte] in step 5,
the window would expand the full screen,
and [New]/[Delete] button on the right side of [Variables] would be missed.
see the attachment.
Set contentData.widthHint in createContents(Composite parent) method in VariableItemEditor.java(around Line 359) solves this. (In reply to Wang Chaobin from comment #3) > Set contentData.widthHint in createContents(Composite parent) method in > VariableItemEditor.java(around Line 359) solves this. Seems webtools.common.snippets.git could not be found in Gerrit(?), diff like blow. plugin:webtools.common.snippets.git file:org\eclipse\wst\common\snippets\internal\editors\VariableItemEditor.java before: -------------------------------------------------------- GridData contentData = new GridData(GridData.FILL_BOTH); contentData.heightHint = parent.getDisplay().getClientArea().height / 5; content.setLayoutData(contentData); -------------------------------------------------------- after: -------------------------------------------------------- GridData contentData = new GridData(GridData.FILL_BOTH); contentData.heightHint = parent.getDisplay().getClientArea().height / 5; contentData.widthHint = 300; content.setLayoutData(contentData); -------------------------------------------------------- Hello Wang, Could you please attach a patch to this bugzilla so we can review it and merge it? I'm triaging this to Mars SR1. Created attachment 254002 [details]
Patch
Hi Roberto,
Please review this patch.
#155974,#157428 are probably the duplicate of this bug.
Created attachment 254025 [details]
patch
please review this path. without hard code.
I tested the second patch (and marked the first one as obsolete) and verified that it fixes the problem reported in this bug, and the other two bug mentioned by Wang. Requesting review from Konstantin *** Bug 157428 has been marked as a duplicate of this bug. *** I can review, but are you sure I am the best person to do so? I haven't looked at the snippets code base before. Perhaps you meant to request a review from Nitin? (In reply to Konstantin Komissarchik from comment #10) > I can review, but are you sure I am the best person to do so? I haven't > looked at the snippets code base before. Perhaps you meant to request a > review from Nitin? I added you as reviewer because you are in the QA Contact field, but I'm adding Nitin as well. |