Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 508285 error Error: w.height is not a function. (In 'w.height()', 'w.height' is undefined)
- getWindowDimensions@http://192.168.0.108:8100/js/app.js:284:73
- $digest@http://192.168.0.108:8100/lib/ionic/js/ionic.bundle.js:30230:37
- $apply@http://192.168.0.108:8100/lib/ionic/js/ionic.bundle.js:30503:31
- done@http://192.168.0.108:8100/lib/ionic/js/ionic.bundle.js:24824:53
- completeRequest@http://192.168.0.108:8100/lib/ionic/js/ionic.bundle.js:25022:15
- requestLoaded@http://192.168.0.108:8100/lib/ionic/js/ionic.bundle.js:24963:24
- 2 508289 error Error: w.height is not a function. (In 'w.height()', 'w.height' is undefined)
- getWindowDimensions@http://192.168.0.108:8100/js/app.js:284:73
- $digest@http://192.168.0.108:8100/lib/ionic/js/ionic.bundle.js:30230:37
- $apply@http://192.168.0.108:8100/lib/ionic/js/ionic.bundle.js:30503:31
- done@http://192.168.0.108:8100/lib/ionic/js/ionic.bundle.js:24824:53
- completeRequest@http://192.168.0.108:8100/lib/ionic/js/ionic.bundle.js:25022:15
- requestLoaded@http://192.168.0.108:8100/lib/ionic/js/ionic.bundle.js:24963:24
- 3 508309 error Error: w.height is not a function. (In 'w.height()', 'w.height' is undefined)
- getWindowDimensions@http://192.168.0.108:8100/js/app.js:284:73
- $digest@http://192.168.0.108:8100/lib/ionic/js/ionic.bundle.js:30230:37
- http://192.168.0.108:8100/lib/ionic/js/ionic.bundle.js:30434:33
- completeOutstandingRequest@http://192.168.0.108:8100/lib/ionic/js/ionic.bundle.js:19194:15
- http://192.168.0.108:8100/lib/ionic/js/ionic.bundle.js:19470:33
- <div id="pageContent" ng-style="height(75)" resize></div>
- .directive('resize', function ($window) {
- return function (scope, element) {
- var w = angular.element($window);
- scope.getWindowDimensions = function () { return { 'h': w.height(), 'w': w.width() }; };
- scope.$watch(scope.getWindowDimensions, function (newValue, oldValue) {
- scope.windowHeight = newValue.h;
- scope.windowWidth = newValue.w;
- scope.style = function (amount) { return { 'height': (newValue.h - amount) + 'px', 'width': (newValue.w - amount) + 'px' }; };
- scope.height = function (amount) { return { 'height': (newValue.h - amount) + 'px' }; };
- }, true);
- w.bind('resize', function () { scope.$apply(); });
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement