From d58665115b3c44ed6b5167edc4cb2cbd947b2799 Mon Sep 17 00:00:00 2001 From: Michael VanDyke Date: Mon, 30 Apr 2018 03:49:54 -0400 Subject: [PATCH] test(platform): fix typo in platform module cookbook example (#5758) * test(platform): add missing properties to platformModule documentation The platformModule cookbook documentation was missing a few properties that are now available. This commit adds those properties to be included in the examples. resolves: NativeScript/NativeScript#5707 * test(platform): fix typo in platform module cookbook example --- tests/app/platform/platform-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app/platform/platform-tests.ts b/tests/app/platform/platform-tests.ts index d07bffdb3..b94c17708 100644 --- a/tests/app/platform/platform-tests.ts +++ b/tests/app/platform/platform-tests.ts @@ -31,7 +31,7 @@ export function snippet_print_all() { console.log("Screen width (px): " + platformModule.screen.mainScreen.widthPixels); console.log("Screen height (px): " + platformModule.screen.mainScreen.heightPixels); - console.log("Screen width (DIPs): " + platformModule.screen.mainScreen.heightDIPs); + console.log("Screen width (DIPs): " + platformModule.screen.mainScreen.widthDIPs); console.log("Screen height (DIPs): " + platformModule.screen.mainScreen.heightDIPs); console.log("Screen scale: " + platformModule.screen.mainScreen.scale); // << platform-current