temporary hack for richtext kind on webworks
This commit is contained in:
parent
32b9a6fdec
commit
763df87ad0
|
@ -45,7 +45,7 @@ enyo.kind({
|
||||||
{kind: "Button", caption: "+", onclick: "showInsert"}
|
{kind: "Button", caption: "+", onclick: "showInsert"}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{flex: 1, kind: "Scroller", components: [
|
{flex: 1, name: "scroller", kind: "Scroller", components: [
|
||||||
{kind: "RichText", name: "tododetail", richContent: false},
|
{kind: "RichText", name: "tododetail", richContent: false},
|
||||||
]},
|
]},
|
||||||
{name: "editToolbar", kind: "Toolbar", pack: "justify", className: "enyo-toolbar-light",
|
{name: "editToolbar", kind: "Toolbar", pack: "justify", className: "enyo-toolbar-light",
|
||||||
|
|
|
@ -96,6 +96,12 @@ enyo.kind({
|
||||||
} else if (window.blackberry) {
|
} else if (window.blackberry) {
|
||||||
this.os = "BlackBerry";
|
this.os = "BlackBerry";
|
||||||
this.dirs = blackberry.io.dir.appDirs;
|
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 {
|
} else {
|
||||||
this.os = "unknown";
|
this.os = "unknown";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue