Skip to content

Commit

Permalink
fix(exposeAsideWhen): trigger a resize event when the aside is exposed
Browse files Browse the repository at this point in the history
Closes #3054.
  • Loading branch information
ajoslin committed Feb 25, 2015
1 parent d8c93b4 commit 27298e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/angular/directive/collectionRepeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,14 +194,15 @@ function CollectionRepeatDirective($ionicCollectionManager, $parse, $window, $$r

// Make sure this resize actually changed the size of the screen
function validateResize() {
var h = element[0].offsetHeight, w = element[0].offsetWidth;
var h = scrollView.__clientHeight, w = scrollView.__clientWidth;
if (w && h && (validateResize.height !== h || validateResize.width !== w)) {
validateResize.height = h;
validateResize.width = w;
refreshDimensions();
}
validateResize.height = h;
validateResize.width = w;
}
function refreshDimensions() {
console.log('refreshDimensions', validateResize.height, validateResize.width);
if (heightData.computed || widthData.computed) {
computeStyleDimensions();
}
Expand Down
1 change: 1 addition & 0 deletions js/angular/directive/sideMenuContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ function($timeout, $ionicGesture, $window) {
$element[0].style.width = '';
content.offsetX = 0;
}
ionic.trigger('resize', null, window);
}),
setMarginRight: ionic.animationFrameThrottle(function(amount) {
if (amount) {
Expand Down

0 comments on commit 27298e9

Please sign in to comment.