Skip to content

Conversation

Iteem
Copy link

@Iteem Iteem commented May 12, 2017

Fixes #6197 by removing parseInt from the calculation of the header height.

Copy link
Member

@mportuga mportuga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible for you to add a unit test for this?

@sjoerd222888
Copy link

What should the unit-test test in this case?

@mportuga
Copy link
Member

My suggestion would be to call that function with a number that normally would be parsed and return a bad value and make sure that headerHeight is the height that you would expect rather than something else.

@mportuga mportuga merged commit 553d72b into angular-ui:master Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants