@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.
- package/bundles/schneideress-dashboardframework.umd.js +14 -11
- package/bundles/schneideress-dashboardframework.umd.js.map +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js +1 -1
- package/bundles/schneideress-dashboardframework.umd.min.js.map +1 -1
- package/esm2015/lib/ra.dashboard.responsive.service.js +15 -12
- package/esm5/lib/ra.dashboard.responsive.service.js +15 -12
- package/fesm2015/schneideress-dashboardframework.js +14 -11
- package/fesm2015/schneideress-dashboardframework.js.map +1 -1
- package/fesm5/schneideress-dashboardframework.js +14 -11
- package/fesm5/schneideress-dashboardframework.js.map +1 -1
- package/package.json +1 -1
|
@@ -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(
|
|
711
|
-
console.log(
|
|
712
|
-
console.log(
|
|
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: /**
|