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

Bug 362860

Summary: New RUI widget is uneditable using the VE design page (possible Webkit-specific issue)
Product: z_Archived Reporter: Will Smythe <smythew>
Component: EDTAssignee: Yun Feng Ma <mayunf>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P1 CC: chenzhh, mayunf, svihovec
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Project containing RUI widget that fails to edit none

Description Will Smythe CLA 2011-11-03 23:17:43 EDT
I created a new RUI widget via the New Handler > RUI Widget wizard. The new widget opened in the VE as expected, but I am not able to drag and drop other widgets onto the new widget (as I drag a new widget over the design canvas, it never turns green or yellow indicating I can drop the widget). And although I see the grid Layout, there is an extra box (see screen shot) which shouldn't be there.
Comment 1 Huo Zhen Zhong CLA 2011-11-04 01:38:17 EDT
Hi, Will
Which version of EDT are you using? I can not recreate it with 0.7.0.v201111030901, everything goes well.
Comment 2 Will Smythe CLA 2011-11-04 08:02:29 EDT
I am using build 200111032101 on Windows XP with Webkit as my VE browser. 

See com.mycompany.client.Mysecondwidget in the attached project.
Comment 3 Will Smythe CLA 2011-11-04 08:02:54 EDT
Created attachment 206459 [details]
Project containing RUI widget that fails to edit
Comment 4 Will Smythe CLA 2011-11-04 08:07:28 EDT
I switched by browser to IE and the widget is now editable. So, this appears to be a Webkit-related issue.
Comment 5 Huo Zhen Zhong CLA 2011-11-07 02:26:50 EST
The RUI handler can also works well in webkit. The egl.getWidthInPixels(element) will return 0 for gridlayout, it is a js runtime problem, so assign to Ji Yong.
Comment 6 Yun Feng Ma CLA 2011-11-09 12:25:54 EST
Fixed, this is a WebKit specific issue. Thanks.