Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read property 'top' of undefined #13

Open
mattmusc opened this issue Feb 14, 2015 · 3 comments
Open

Uncaught TypeError: Cannot read property 'top' of undefined #13

mattmusc opened this issue Feb 14, 2015 · 3 comments

Comments

@mattmusc
Copy link

I am continuously getting the following error:

'Uncaught TypeError: Cannot read property 'top' of undefined'

var tiles = $el.children(".wp-tiles-tile"), tileOffsetTop = parseInt($el.offset().top), max = 0, newHeight;

I think the error is in the following piece of code, but I cannot understand why.
I boiled down the error to line 767 with the help of the Debugger

Can you help me?

I am using this plugin with Wordpress 4.1

Edit:
I have added the following check:

$el.offset() != undefined
@bxm156
Copy link

bxm156 commented Nov 17, 2015

I have the same problem as well.

@bj-mcduck
Copy link

Same here

@bj-mcduck
Copy link

This actually breaks the page for IE9 users, which unfortunately is still a thing that's important to my company.

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

No branches or pull requests

3 participants