Coder Social home page Coder Social logo

Comments (12)

vinayakpatil avatar vinayakpatil commented on September 28, 2024 1

var elementOffset = this._element.nativeElement.getBoundingClientRect().top + (window.scrollY || window.pageYOffset); works for me in IE

from ng-defer-load.

VamsiVempati avatar VamsiVempati commented on September 28, 2024 1

Hi @peterpeterparker & @vinayakpatil

Very sorry, somehow seem to have missed this!

The changes suggested seem reasonable, however I'm unable to test this atm.

@mzoellner might be a bit closer to this repo now than I am, what are your thoughts @mzoellner ?

Thank you,
Vamsi Vempati

from ng-defer-load.

peterpeterparker avatar peterpeterparker commented on September 28, 2024 1

Thx for the feedback @VamsiVempati

Actually I don't use this library anymore, therefore, when it comes to me, we can simply close this feature request.

from ng-defer-load.

mzoellner avatar mzoellner commented on September 28, 2024 1

Hi @vinayakpatil,
sorry for the delay here.
We are not very active with reviewing PRs for this package.
I am trying to fit it in during the next couple of days and get back to you.

from ng-defer-load.

mzoellner avatar mzoellner commented on September 28, 2024 1

Hi @vinayakpatil,
I did the regression test on our end and it looks all good.
Once you have updated the PR, I will merge it in.

from ng-defer-load.

asgerjensen avatar asgerjensen commented on September 28, 2024

I dont know... doesn't getBoundingClientRect() cause a full relayout calculation in some browsers?

from ng-defer-load.

vinayakpatil avatar vinayakpatil commented on September 28, 2024

Hi @VamsiVempati , can you please check #37 and share your thoughts?

from ng-defer-load.

vinayakpatil avatar vinayakpatil commented on September 28, 2024

HI @VamsiVempati just following up on this one, thanks!

from ng-defer-load.

vinayakpatil avatar vinayakpatil commented on September 28, 2024

@mzoellner did you get a chance to review this? Thanks

from ng-defer-load.

mzoellner avatar mzoellner commented on September 28, 2024

I dont know... doesn't getBoundingClientRect() cause a full relayout calculation in some browsers?

According to https://gist.github.com/paulirish/5d52fb081b3570c81e3a this._element.nativeElement.offsetTop; also does, so it probably does not matter.

from ng-defer-load.

vinayakpatil avatar vinayakpatil commented on September 28, 2024

Hi @mzoellner, did you get a chance to check this? Thanks

from ng-defer-load.

mzoellner avatar mzoellner commented on September 28, 2024

Hi @vinayakpatil,
really sorry this is taking so long.
Could you please update your PR, so the merge conflicts are resolved ?

I will merge it in, once I have confirmed that the calculation is correct and we won't have any regression on our end.

from ng-defer-load.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.