mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
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
This commit is contained in:
committed by
Manol Donev
parent
1cb5e7387d
commit
d58665115b
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user