Fixed parent container of activity stream setting the min-height value. This keeps the activity stream from overlapping the footer. Fixed groups page edit to not clear/empty the credential_name field.

This commit is contained in:
Chris Houseknecht
2013-11-08 22:07:51 +00:00
parent b2ce037acc
commit 5b2751c57f
3 changed files with 15 additions and 5 deletions

View File

@@ -13,16 +13,25 @@ angular.module('StreamWidget', ['RestServices', 'Utilities', 'StreamListDefiniti
.factory('ShowStream', [ function() {
return function() {
// Slide in the Stream widget
// Make some style/position adjustments adjustments
var stream = $('#stream-container');
stream.css({
position: 'absolute',
left: 0,
top: 0,
left: 0,
width: '100%',
'min-height': '100%',
'background-color': '#FFF'
});
// Try not to overlap footer. Because stream is positioned absolute, the parent
// doesn't resize correctly when stream is loaded.
$('#tab-content-container').css({ 'min-height': stream.height() });
// Slide in stream
stream.show('slide', {'direction': 'left'}, {'duration': 500, 'queue': false });
}
}])
@@ -40,6 +49,7 @@ angular.module('StreamWidget', ['RestServices', 'Utilities', 'StreamListDefiniti
stream.detach();
stream.empty();
stream.unbind();
$('#tab-content-container').css({ 'min-height': 0 }); //let the parent height go back to normal
}, 500);
}
}])