mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user