temporary hack for richtext kind on webworks
This commit is contained in:
parent
32b9a6fdec
commit
763df87ad0
2 changed files with 7 additions and 1 deletions
|
@ -45,7 +45,7 @@ enyo.kind({
|
|||
{kind: "Button", caption: "+", onclick: "showInsert"}
|
||||
]
|
||||
},
|
||||
{flex: 1, kind: "Scroller", components: [
|
||||
{flex: 1, name: "scroller", kind: "Scroller", components: [
|
||||
{kind: "RichText", name: "tododetail", richContent: false},
|
||||
]},
|
||||
{name: "editToolbar", kind: "Toolbar", pack: "justify", className: "enyo-toolbar-light",
|
||||
|
|
|
@ -96,6 +96,12 @@ enyo.kind({
|
|||
} else if (window.blackberry) {
|
||||
this.os = "BlackBerry";
|
||||
this.dirs = blackberry.io.dir.appDirs;
|
||||
// hack for RichText not working properly
|
||||
this.$.editView.$.tododetail.destroy();
|
||||
this.$.editView.$.scroller.createComponent(
|
||||
{kind: "Input", name: "tododetail", owner:this.$.editView}
|
||||
);
|
||||
this.$.editView.render();
|
||||
} else {
|
||||
this.os = "unknown";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue