You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
I found out that when using pagination in md-table, the header cells width is not always correct.
I switch to page 2 for example, but the header cells do not adapt to the new table layout.
To fix that, you just have to use angulars $timeout function as a wrapper in your setWidth function:
var setWidth = function () {
$timeout(function () {
marginTop(height());
clone.css({
minWidth: style.width,
maxWidth: style.width
});
});
};
Obviously $timeout also has to be listed in the $inject array and function parameters
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I found out that when using pagination in md-table, the header cells width is not always correct.
I switch to page 2 for example, but the header cells do not adapt to the new table layout.
To fix that, you just have to use angulars
$timeout
function as a wrapper in yoursetWidth
function:Obviously
$timeout
also has to be listed in the$inject
array and function parametersThe text was updated successfully, but these errors were encountered: