From a81ee1b14307ac9cc5d11513b56f4826c37a3324 Mon Sep 17 00:00:00 2001 From: Nathanael Anderson Date: Mon, 24 Aug 2015 02:04:31 -0500 Subject: [PATCH] frame-common.ts is missing the code to automagically load the page.css file if it exists on a page that is created via JavaScript createPage function. The expected behavior should be that the page.css file is always loaded if it exists. --- ui/frame/frame-common.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/frame/frame-common.ts b/ui/frame/frame-common.ts index 4c1851478..822c8bf7d 100644 --- a/ui/frame/frame-common.ts +++ b/ui/frame/frame-common.ts @@ -57,6 +57,10 @@ export function resolvePageFromEntry(entry: definition.NavigationEntry): pages.P if (moduleExports && moduleExports.createPage) { trace.write("Calling createPage()", trace.categories.Navigation); page = moduleExports.createPage(); + var cssFileName = fileResolverModule.resolveFileName(moduleNamePath, "css"); + if (cssFileName) { + page.addCssFile(cssFileName); + } } else { page = pageFromBuilder(moduleNamePath, moduleExports);