Fixed HtmlView

This commit is contained in:
Rossen Hristov
2016-12-22 17:08:43 +02:00
parent 9d712cfaf6
commit a0a202113e
3 changed files with 23 additions and 21 deletions

View File

@@ -1,12 +1,10 @@
import { HtmlView as HtmlViewDefinition } from "ui/html-view";
import { View, layout, Property } from "ui/core/view";
import {
HtmlViewBase, View, layout, htmlProperty
} from "./html-view-common";
export * from "ui/core/view";
export * from "./html-view-common";
// TODO: Can we use Label.ios optimization for affectsLayout???
export const htmlProperty = new Property<HtmlView, string>({ name: "html", defaultValue: "", affectsLayout: true });
export class HtmlView extends View implements HtmlViewDefinition {
export class HtmlView extends HtmlViewBase {
private _ios: UITextView;
constructor() {
@@ -20,8 +18,6 @@ export class HtmlView extends View implements HtmlViewDefinition {
this._ios.dataDetectorTypes = UIDataDetectorTypes.All;
}
public html: string;
get ios(): UITextView {
return this._ios;
}