html - Jquery offset shows values relative to fixed parent instead of page -


i'm having issues getting offset of object contained in fixed parent. understand using object.offset() give position relative whole document, when put object in fixed container, returns offset relative screen you're on.

i'm trying display object @ position relative first - if you're @ top of page, it'll fine, if you've scrolled down won't. i've found when using jquery dialog, have been able replicate on regular objects well.

is expected behavior? if so, there way find position of object relative document when contained in fixed parent?

huh, did follow here - wasn't able replicate in jsfiddle. whatever problem seems specific own environment. guess i'll keep bashing , see if can find what's causing issue.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

angularjs - ng-repeat duplicating items after page reload -