| Summary: | [Compare]Make compare widget inject-able to any DIV. | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | libing wang <libingw> |
| Component: | Client | Assignee: | 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
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. 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();
|