Cleaned up autoresize_width directive.
Cleanup for review #99975, submitted as a separate patch in case that review isn't updated. Removes two comments. Change-Id: I498e4e4166b4151df4b1651be9e171384cebfb34
This commit is contained in:
parent
060627c6c8
commit
29ff6b33ac
@ -43,7 +43,6 @@ angular.module('sb.util')
|
||||
$document.find('body').append(shadow);
|
||||
$scope.$on('$destroy', function () {
|
||||
shadow.remove();
|
||||
// $document.find('body').remove(shadow);
|
||||
});
|
||||
|
||||
/**
|
||||
@ -66,7 +65,6 @@ angular.module('sb.util')
|
||||
shadow.css('display', 'inline-block');
|
||||
try {
|
||||
$element[0].offsetWidth = shadow[0].offsetWidth;
|
||||
// $element.width(shadow.width());
|
||||
}
|
||||
finally {
|
||||
shadow.css('display', 'none');
|
||||
@ -77,4 +75,4 @@ angular.module('sb.util')
|
||||
recalculateSize();
|
||||
}
|
||||
};
|
||||
});
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user