Home > Cannot Read > Cannot Read Property Offsettop

Cannot Read Property Offsettop

Contents

How do fonts work in LaTeX? Select.js:193 Uncaught TypeError: Cannot read property 'offsetTop' of null I used the example code for test in my project. Wrong way on a bike path? I think you can replace all your :nth-of-type by :nth-child everywhere it's used in your plugin in order to make it more flexible. this contact form

The corresponding line of code in the source is 180: if (this.refs.menu && this.refs.focused && this.state.isOpen && !this.hasScrolledToOption) { let focusedOptionNode = ReactDOM.findDOMNode(this.refs.focused); let menuNode = ReactDOM.findDOMNode(this.refs.menu); menuNode.scrollTop = focusedOptionNode.offsetTop; this.hasScrolledToOption Solved it by replacing css selector used on smartscroll.js, line 106: replace :nth-of-type by :nth-child @d4nyll is there any particular reason you used :nth-of-type ? Let us know if this can be reproduced in Safe Mode and we'll be happy to reopen the Issue! Is this Business or Tourism? http://stackoverflow.com/questions/20175094/uncaught-typeerror-cannot-read-property-top-of-undefined

Cannot Read Property 'top' Of Undefined Scroll

How Did The Dred Scott Decision Contribute to the Civil War? Do Morpheus and his crew kill potential Ones? I tested it in 1.3 and the only problem is it has no style as mentioned above. Already have an account?

Appreciate the help –tigre Nov 13 '14 at 17:02 add a comment| 2 Answers 2 active oldest votes up vote 0 down vote You can use the console.log() function to actually Here's the code for both. $(document).ready(function () { var contentNav = $('.content-nav').offset().top; var stickyNav = function () { var scrollTop = $(window).scrollTop(); if (scrollTop > contentNav) { $('.content-nav').addClass('content-nav-sticky'); } else {; Terms Privacy Security Status Help You can't perform that action at this time. Uncaught Typeerror Cannot Read Property Top Of Undefined Wordpress If so, I can't find a solution.

Did a thief think he could conceal his identity from security cameras by putting lemon juice on his face? Uncaught Typeerror Cannot Read Property 'top' Of Undefined Bootstrap whenever i tried to apply on click scroll script i got this error "uncaught typeError: cannot read property 'top' of null". Skip to content Ignore Learn more Please note that GitHub no longer supports old versions of Firefox. JuanCrg90 changed the title from Problems using the component in Meteor 1.2 to Uncaught TypeError: Cannot read property 'offsetTop' of null Apr 29, 2016 hedaro commented May 25, 2016 I debugged

How to reset the WiFi configuration in Raspbian What was Stan Lee's character reading on the bus in Doctor Strange The OK or FAIL column The cost of switching to electric Uncaught Typeerror: Cannot Read Property 'scrolltop' Of Undefined Why did Michael Corleone not forgive his brother Fredo? Skip to content Ignore Learn more Please note that GitHub no longer supports old versions of Firefox. more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed

Uncaught Typeerror Cannot Read Property 'top' Of Undefined Bootstrap

Visiting Singapore for attending Conference. navigate to these guys But I aim to fix this soon. Cannot Read Property 'top' Of Undefined Scroll And what a simple solution. Cannot Read Property 'top' Of Undefined Angular maoosi commented May 21, 2015 I got the same problem using html5 tags structure.

share|improve this answer answered Nov 24 '13 at 13:42 Shadow Wizard 49k1385133 this was really helpful, thank you! –Jordan Mar 11 '15 at 23:29 add a comment| up vote http://sauvblog.com/cannot-read/cannot-read-property-offsetparent-of-undefined.html How do I handle this? Thanks for reporting! http://jsfiddle.net/2LuNP/ system 2014-10-08 03:42:50 UTC #3 Home Categories FAQ/Guidelines Terms of Service Privacy Policy Powered by Discourse, best viewed with JavaScript enabled Podcast Articles Premium Skip to main content Skip to Uncaught Typeerror: Cannot Read Property 'top' Of Null

Please let me know if that's possible for you, and whether you're able to resolve the issue! Then Javascript breaks with the following error: caught TypeError: Cannot read property 'scrollTop' of null .../sites/all/modules/pdf_reader/js/viewer.js?nli5wy I should note that on this dialog a media preview thumbnail is displayed, but that Personal Open source Business Explore Sign up Sign in Pricing Blog Support Search GitHub This repository Watch 10 Star 129 Fork 23 d4nyll/smartscroll Code Issues 13 Pull requests 1 Projects http://sauvblog.com/cannot-read/cannot-read-property-offsetheight.html This may be a problem related to React in Meteor 1.2.

How to jump around the piano? Cannot Read Property 'top' Of Undefined Datetimepicker Did a thief think he could conceal his identity from security cameras by putting lemon juice on his face? maoosi commented Jun 15, 2015 Because :nth-of-type selector is attached to a particular type, so if we don't want to use the same tag type (something different from a

like

Reload to refresh your session.

After I've selected the asset, I'm taken to an "Embedding [medial asset]" dialog. If an image is rotated losslessly, why does the file size change? thanks! Cannot Read Property 'offset' Of Undefined I have so much more to learn.

In fact, no other jQuery code below that second line works at all unless they are placed above it. Reload to refresh your session. Browse other questions tagged javascript html or ask your own question. his comment is here share|improve this answer answered Aug 23 '15 at 19:28 drjorgepolanco 1,172919 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign

Reload to refresh your session. Is it anti-pattern if a class property creates and returns a new instance of a class? I don't know if you are limited to JQuery only, but a native JavaScript solution does the trick every time ;) I found this: https://developer.mozilla.org/en-US/docs/Web/API/Element.scrollTop May be helpful share|improve this answer It works for me, but I'm pretty sure there's a better way to handle this.

Should I create multiple maintenance plans to backup more than 200 User databases Is adding the ‘tbl’ prefix to table names really a problem? Join them; it only takes a minute: Sign up Offset javascript scroll: cannot read property 'top' of undefined error up vote 0 down vote favorite I'm trying to use this javascript Mimsy were the Borograves - why "mimsy" is an adjective? Can I hint the optimizer by giving the range of an integer?

I did just that and it fixed the situation. more hot questions question feed default about us tour help blog chat data legal privacy policy work here advertising info mobile contact us feedback Technology Life / Arts Culture / Recreation asked 2 years ago viewed 98288 times active 1 year ago Upcoming Events 2016 Community Moderator Election ends Nov 22 Linked 0 Uncaught TypeError: Cannot read property 'top' of undefined with