File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
packages/core/application Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,8 @@ export class ApplicationCommon {
233233 private setRootViewCSSClasses ( rootView : View ) : void {
234234 const platform = Device . os . toLowerCase ( ) ;
235235 const deviceType = Device . deviceType . toLowerCase ( ) ;
236+ const orientation = this . orientation ( ) ;
237+ const systemAppearance = this . systemAppearance ( ) ;
236238
237239 if ( platform ) {
238240 CSSUtils . pushToSystemCssClasses ( `${ CSSUtils . CLASS_PREFIX } ${ platform } ` ) ;
@@ -242,12 +244,12 @@ export class ApplicationCommon {
242244 CSSUtils . pushToSystemCssClasses ( `${ CSSUtils . CLASS_PREFIX } ${ deviceType } ` ) ;
243245 }
244246
245- if ( this . orientation ) {
246- CSSUtils . pushToSystemCssClasses ( `${ CSSUtils . CLASS_PREFIX } ${ this . orientation } ` ) ;
247+ if ( orientation ) {
248+ CSSUtils . pushToSystemCssClasses ( `${ CSSUtils . CLASS_PREFIX } ${ orientation } ` ) ;
247249 }
248250
249- if ( this . systemAppearance ) {
250- CSSUtils . pushToSystemCssClasses ( `${ CSSUtils . CLASS_PREFIX } ${ this . systemAppearance } ` ) ;
251+ if ( systemAppearance ) {
252+ CSSUtils . pushToSystemCssClasses ( `${ CSSUtils . CLASS_PREFIX } ${ systemAppearance } ` ) ;
251253 }
252254
253255 rootView . cssClasses . add ( CSSUtils . ROOT_VIEW_CSS_CLASS ) ;
You can’t perform that action at this time.
0 commit comments