Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Cell width and pagination #42

Open
brainwind-software opened this issue Nov 19, 2018 · 0 comments
Open

Cell width and pagination #42

brainwind-software opened this issue Nov 19, 2018 · 0 comments

Comments

@brainwind-software
Copy link

brainwind-software commented Nov 19, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant