From f7a28a90bd158e81ddd47d1a08e9ae10ba21a31a Mon Sep 17 00:00:00 2001 From: Vladimir Enchev Date: Tue, 29 Mar 2016 11:15:49 +0300 Subject: [PATCH] Text transform and decoration updated on binding context changed --- apps/ui-tests-app/css/listview.ts | 7 +++++++ apps/ui-tests-app/css/listview.xml | 7 +++++++ ui/text-base/text-base-common.ts | 3 +++ 3 files changed, 17 insertions(+) create mode 100644 apps/ui-tests-app/css/listview.ts create mode 100644 apps/ui-tests-app/css/listview.xml diff --git a/apps/ui-tests-app/css/listview.ts b/apps/ui-tests-app/css/listview.ts new file mode 100644 index 000000000..22e3e31e7 --- /dev/null +++ b/apps/ui-tests-app/css/listview.ts @@ -0,0 +1,7 @@ +export function loaded(args) { + var items = []; + for (var i = 0; i < 100; i++) { + items.push("name" + i); + } + args.object.bindingContext = { items: items }; +} diff --git a/apps/ui-tests-app/css/listview.xml b/apps/ui-tests-app/css/listview.xml new file mode 100644 index 000000000..7f47fcb1a --- /dev/null +++ b/apps/ui-tests-app/css/listview.xml @@ -0,0 +1,7 @@ + + + + + + diff --git a/ui/text-base/text-base-common.ts b/ui/text-base/text-base-common.ts index 7536b642b..aaf801f44 100644 --- a/ui/text-base/text-base-common.ts +++ b/ui/text-base/text-base-common.ts @@ -53,6 +53,9 @@ export class TextBase extends view.View implements definition.TextBase, formatte if (this.formattedText) { this.formattedText.updateSpansBindingContext(newValue); } + + this.style._updateTextTransform(); + this.style._updateTextDecoration(); } get text(): string {