diff --git a/platform/nativescript/backend.js b/platform/nativescript/backend.js
index <HASH>..<HASH> 100644
--- a/platform/nativescript/backend.js
+++ b/platform/nativescript/backend.js
@@ -97,6 +97,10 @@ exports.init = function(ctx) {
 
 	page = nativeContext
 	ctx.element = new Element(ctx, parentLayout)
+
+	log('page size: ', page.getMeasuredWidth(), 'x', page.getMeasuredHeight())
+	context.width = page.getMeasuredWidth()
+	context.height = page.getMeasuredHeight()
 }
 
 
@@ -105,9 +109,6 @@ exports.run = function(ctx, callback) {
 }
 
 exports.finalize = function() {
-	log('page size: ', page.getMeasuredWidth(), 'x', page.getMeasuredHeight())
-	context.width = page.getMeasuredWidth()
-	context.height = page.getMeasuredHeight()
 	finalization_callback()
 	finalization_callback = null
 }
moved page initialisation stuff into .init() again