mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
Moved text-align and font-size to TextBase and fixed a WebView test.
This commit is contained in:
@ -174,20 +174,6 @@ export class View extends proxy.ProxyObject implements definition.View {
|
||||
this.style.backgroundColor = value;
|
||||
}
|
||||
|
||||
get fontSize(): number {
|
||||
return this.style.fontSize;
|
||||
}
|
||||
set fontSize(value: number) {
|
||||
this.style.fontSize = value;
|
||||
}
|
||||
|
||||
get textAlignment(): string {
|
||||
return this.style.textAlignment;
|
||||
}
|
||||
set textAlignment(value: string) {
|
||||
this.style.textAlignment;
|
||||
}
|
||||
|
||||
get minWidth(): number {
|
||||
return this.style.minWidth;
|
||||
}
|
||||
|
10
ui/core/view.d.ts
vendored
10
ui/core/view.d.ts
vendored
@ -135,16 +135,6 @@ declare module "ui/core/view" {
|
||||
*/
|
||||
backgroundColor: color.Color;
|
||||
|
||||
/**
|
||||
* Gets or sets font-size style property.
|
||||
*/
|
||||
fontSize: number;
|
||||
|
||||
/**
|
||||
* Gets or sets text-alignment style property.
|
||||
*/
|
||||
textAlignment: string;
|
||||
|
||||
/**
|
||||
* Gets or sets the minimum width the view may grow to.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user