@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.
@@ -705,20 +705,25 @@
705
705
  */
706
706
  function () {
707
707
  var _this = this;
708
- this.screenWidth = screen.width;
709
708
  console.log('$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$');
710
- console.log(this.screenWidth);
711
- console.log(this.IsDesktopView);
712
- console.log(this.IsMobile);
709
+ console.log('Width---------------');
710
+ console.log(screen.width);
711
+ console.log('Height--------------');
712
+ console.log(screen.height);
713
+ console.log('Orientation---------------');
714
+ console.log(screen.orientation.angle);
715
+ console.log('$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$');
716
+ this.screenWidth = screen.width;
713
717
  if (this.IsDesktopView) {
714
718
  this.currentResInfo = this.resInfo[3];
715
- console.log('current res info is');
716
- console.log(this.currentResInfo);
717
719
  }
718
- // else if (this.IsMobile) {
719
- // this.currentResInfo = this.resInfo[0];
720
- // }
721
720
  else {
721
+ if (this.IsMobile) {
722
+ if (screen.orientation.angle == 0)
723
+ this.screenWidth = screen.width;
724
+ else if (screen.orientation.angle == 90)
725
+ this.screenWidth = screen.height;
726
+ }
722
727
  this.currentResInfo = this.resInfo.filter((/**
723
728
  * @param {?} item
724
729
  * @return {?}
@@ -727,8 +732,6 @@
727
732
  return item.end >= _this.screenWidth && item.start <= _this.screenWidth;
728
733
  }))[0];
729
734
  }
730
- console.log(this.currentResInfo);
731
- console.log('$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$');
732
735
  };
733
736
  Object.defineProperty(RADashboardResponsiveService.prototype, "IsDesktopView", {
734
737
  get: /**