Skip to content

Commit d586651

Browse files
Michael VanDykemanoldonev
authored andcommitted
test(platform): fix typo in platform module cookbook example (NativeScript#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#5707 * test(platform): fix typo in platform module cookbook example
1 parent 1cb5e73 commit d586651

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/app/platform/platform-tests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function snippet_print_all() {
3131

3232
console.log("Screen width (px): " + platformModule.screen.mainScreen.widthPixels);
3333
console.log("Screen height (px): " + platformModule.screen.mainScreen.heightPixels);
34-
console.log("Screen width (DIPs): " + platformModule.screen.mainScreen.heightDIPs);
34+
console.log("Screen width (DIPs): " + platformModule.screen.mainScreen.widthDIPs);
3535
console.log("Screen height (DIPs): " + platformModule.screen.mainScreen.heightDIPs);
3636
console.log("Screen scale: " + platformModule.screen.mainScreen.scale);
3737
// << platform-current

0 commit comments

Comments
 (0)