mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
FIX: App.css now applied when there is page css
This commit is contained in:
@@ -38,7 +38,13 @@ export class StyleScope {
|
||||
this._reset();
|
||||
|
||||
if (!this._cssSelectors) {
|
||||
this._cssSelectors = new Array<cssSelector.CssSelector>();
|
||||
// Always add app.css when initializing selectors
|
||||
if (application.cssSelectorsCache) {
|
||||
this._cssSelectors = StyleScope._joinCssSelectorsArrays([application.cssSelectorsCache]);
|
||||
}
|
||||
else {
|
||||
this._cssSelectors = new Array<cssSelector.CssSelector>();
|
||||
}
|
||||
}
|
||||
|
||||
var selectorsFromFile = StyleScope.createSelectorsFromCss(cssString, cssFileName);
|
||||
|
||||
Reference in New Issue
Block a user