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

Bug 369425

Summary: [Compare]Make compare widget inject-able to any DIV.
Product: [ECD] Orion Reporter: libing wang <libingw>
Component: ClientAssignee: libing wang <libingw>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: antonm, susan
Version: 0.4   
Target Milestone: 0.4 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Bug Depends on:    
Bug Blocks: 368981    

Description libing wang CLA 2012-01-23 12:25:05 EST
Before 0.4M1 , the compare widget could only be injected into another dojo border container.
We should make it inject-able into any DIV. So should the search/replace preview.
Comment 1 libing wang CLA 2012-01-23 12:34:00 EST
fixed with http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=eefc17945d12965acdbacd94684cee8b9a9c1a53.

Thanks Anton for the suggestions and Susan for "triggering" the issue out.
Comment 2 libing wang CLA 2012-01-23 12:45:44 EST
Just want to post the snippet as the trick here.
Suppose you have the parentDivId as any DIV.

var marginBox = dojo.marginBox(parentDivId);

var topWidget = new dijit.layout.BorderContainer({id: topWidgetId, width: marginBox.w, height: marginBox.h, region:"center", gutters:false ,design:"headline", liveSplitters:true, persist:false , splitter:true });

topWidget.placeAt(parentDivId);

topWidget.startup();