Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(tabs): tabs will not try to animate height if the new height matc…
Browse files Browse the repository at this point in the history
…hes the current height
  • Loading branch information
Robert Messerle committed Dec 10, 2015
1 parent 8d7ec06 commit a4ea9de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/tabs/js/tabsController.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,9 @@ function MdTabsController ($scope, $element, $window, $mdConstant, $mdTabInkRipp
contentHeight = tabContent ? tabContent.offsetHeight : 0,
tabsHeight = elements.wrapper.offsetHeight,
newHeight = contentHeight + tabsHeight,
currentHeight = $element.prop('offsetHeight');
currentHeight = $element.prop('clientHeight');

if (currentHeight === newHeight) return;

// Adjusts calculations for when the buttons are bottom-aligned since this relies on absolute
// positioning. This should probably be cleaned up if a cleaner solution is possible.
Expand Down

0 comments on commit a4ea9de

Please sign in to comment.