mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Total TextBase refactoring + several bug fixes.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Button as ButtonDefinition } from "ui/button";
|
||||
import { TextBase } from "ui/text-base";
|
||||
import { TextBase, WhiteSpace } from "ui/text-base";
|
||||
|
||||
export * from "ui/text-base";
|
||||
|
||||
@@ -7,9 +7,9 @@ export abstract class ButtonBase extends TextBase implements ButtonDefinition {
|
||||
public static tapEvent = "tap";
|
||||
|
||||
get textWrap(): boolean {
|
||||
return this.style.whiteSpace === "normal";
|
||||
return this.style.whiteSpace === WhiteSpace.NORMAL;
|
||||
}
|
||||
set textWrap(value: boolean) {
|
||||
this.style.whiteSpace = value ? "normal" : "nowrap";
|
||||
this.style.whiteSpace = value ? WhiteSpace.NORMAL : WhiteSpace.NO_WRAP;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user