@schneideress/dashboardframework 0.0.165 → 0.0.167

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -499,20 +499,25 @@ var RADashboardResponsiveService = /** @class */ (function () {
499
499
  */
500
500
  function () {
501
501
  var _this = this;
502
- this.screenWidth = screen.width;
503
502
  console.log('$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$');
504
- console.log(this.screenWidth);
505
- console.log(this.IsDesktopView);
506
- console.log(this.IsMobile);
503
+ console.log('Width---------------');
504
+ console.log(screen.width);
505
+ console.log('Height--------------');
506
+ console.log(screen.height);
507
+ console.log('Orientation---------------');
508
+ console.log(screen.orientation.angle);
509
+ console.log('$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$');
510
+ this.screenWidth = screen.width;
507
511
  if (this.IsDesktopView) {
508
512
  this.currentResInfo = this.resInfo[3];
509
- console.log('current res info is');
510
- console.log(this.currentResInfo);
511
513
  }
512
- // else if (this.IsMobile) {
513
- // this.currentResInfo = this.resInfo[0];
514
- // }
515
514
  else {
515
+ if (this.IsMobile) {
516
+ if (screen.orientation.angle == 0)
517
+ this.screenWidth = screen.width;
518
+ else if (screen.orientation.angle == 90)
519
+ this.screenWidth = screen.height;
520
+ }
516
521
  this.currentResInfo = this.resInfo.filter((/**
517
522
  * @param {?} item
518
523
  * @return {?}
@@ -521,8 +526,6 @@ var RADashboardResponsiveService = /** @class */ (function () {
521
526
  return item.end >= _this.screenWidth && item.start <= _this.screenWidth;
522
527
  }))[0];
523
528
  }
524
- console.log(this.currentResInfo);
525
- console.log('$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$');
526
529
  };
527
530
  Object.defineProperty(RADashboardResponsiveService.prototype, "IsDesktopView", {
528
531
  get: /**