Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 369425 - [Compare]Make compare widget inject-able to any DIV.
Summary: [Compare]Make compare widget inject-able to any DIV.
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.4   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.4 M2   Edit
Assignee: libing wang CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 368981
  Show dependency tree
 
Reported: 2012-01-23 12:25 EST by libing wang CLA
Modified: 2012-04-13 11:55 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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();