From 83e0ae4c85299c8481b8039cf00490221d11ca58 Mon Sep 17 00:00:00 2001 From: Rossen Hristov Date: Wed, 26 Oct 2016 15:36:37 +0300 Subject: [PATCH] Fix: CSS scale breaks background properties on iOS Resolves #2911 --- apps/app/ui-tests-app/issues/issue-2911.css | 18 ++++++++++++++ apps/app/ui-tests-app/issues/issue-2911.xml | 7 ++++++ apps/app/ui-tests-app/issues/main-page.ts | 24 +++++++++++++++++++ apps/app/ui-tests-app/issues/main-page.xml | 6 +++++ apps/app/ui-tests-app/mainPage.ts | 1 + tns-core-modules/ui/styling/background.ios.ts | 6 ++--- 6 files changed, 59 insertions(+), 3 deletions(-) create mode 100644 apps/app/ui-tests-app/issues/issue-2911.css create mode 100644 apps/app/ui-tests-app/issues/issue-2911.xml create mode 100644 apps/app/ui-tests-app/issues/main-page.ts create mode 100644 apps/app/ui-tests-app/issues/main-page.xml diff --git a/apps/app/ui-tests-app/issues/issue-2911.css b/apps/app/ui-tests-app/issues/issue-2911.css new file mode 100644 index 000000000..39c96ff20 --- /dev/null +++ b/apps/app/ui-tests-app/issues/issue-2911.css @@ -0,0 +1,18 @@ +Button { + background-color: red; + background-image: url('~/ui-tests-app/image-view/gravatar2.png'); + background-position: center; + background-size: 50% 50%; + background-repeat: no-repeat; + width: 100; + height: 100; + margin-bottom: 100; +} + +.scale-up { + transform: scale(2, 2); +} + +.scale-down { + transform: scale(0.5, 0.5); +} \ No newline at end of file diff --git a/apps/app/ui-tests-app/issues/issue-2911.xml b/apps/app/ui-tests-app/issues/issue-2911.xml new file mode 100644 index 000000000..29165f241 --- /dev/null +++ b/apps/app/ui-tests-app/issues/issue-2911.xml @@ -0,0 +1,7 @@ + + +