Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366667 - The child of TitlePane dropped to the VE cannot display in the VE
Summary: The child of TitlePane dropped to the VE cannot display in the VE
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Huang Ji Yong CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-14 01:57 EST by fahua jin CLA
Modified: 2017-02-23 14:15 EST (History)
4 users (show)

See Also:


Attachments
fix (4.03 KB, patch)
2011-12-30 03:25 EST, Huang Ji Yong CLA
lasher: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description fahua jin CLA 2011-12-14 01:57:58 EST
Build Identifier: 0.7 GA build

1) Drag a TitlePane to VE.
2) In the default generated code for TitlePane, there is a child Div. But the Div can neither be displayed in VE nor in outline view.
3) If update the Div as following, then it can be displayed in the VE.

Original is,
...children = [ new Div { } ] ...

Change to,
...children = [ new Div {innerHTML = " "} ] ...

Reproducible: Always
Comment 1 Will Smythe CLA 2011-12-14 11:10:32 EST
This is important as it's impacting the database access tutorial.
Comment 2 Huo Zhen Zhong CLA 2011-12-30 01:36:12 EST
This is caused by a wrong js generation by js gen, has worked with Ji Yong to make out a fix. Ji Yong will check in the code solve the defect.
Comment 3 Huang Ji Yong CLA 2011-12-30 03:25:40 EST
Created attachment 208866 [details]
fix
Comment 4 Huang Ji Yong CLA 2011-12-30 03:27:56 EST
Add a temporary variable for the embedded widget created by new expression as RBD did.
We may consider only generate such way in VE mode to avoid temporary variables in generated js which can be categorized to be the theme of js gen optimization theme of 0.8.0
Comment 5 fahua jin CLA 2012-01-16 21:15:33 EST
Verified in 0.8.0.v201201150902-1CT-Fiv5_M5_LOPfUa4.