temporary hack for richtext kind on webworks

This commit is contained in:
Morgan McMillian 2012-03-11 20:37:33 -04:00
parent 32b9a6fdec
commit 763df87ad0
2 changed files with 7 additions and 1 deletions

View file

@ -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",

View file

@ -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";
}