mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 22:00:17 +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) {
|
if (moduleExports && moduleExports.createPage) {
|
||||||
trace.write("Calling createPage()", trace.categories.Navigation);
|
trace.write("Calling createPage()", trace.categories.Navigation);
|
||||||
page = moduleExports.createPage();
|
page = moduleExports.createPage();
|
||||||
|
var cssFileName = fileResolverModule.resolveFileName(moduleNamePath, "css");
|
||||||
|
if (cssFileName) {
|
||||||
|
page.addCssFile(cssFileName);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
page = pageFromBuilder(moduleNamePath, moduleExports);
|
page = pageFromBuilder(moduleNamePath, moduleExports);
|
||||||
|
Reference in New Issue
Block a user