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

position: $input.offset() может работать неверно #24

Open
mrzafod opened this issue Mar 3, 2015 · 0 comments
Open

Comments

@mrzafod
Copy link

mrzafod commented Mar 3, 2015

в случаях использования стилей с медиа запросами $.offset() может работать не верно.
решает проблему стандартный getBoundingClientRect

function position() {
    var inputOffset = $input[0].getBoundingClientRect(),
        // inputOffset = $input.offset(),
        inputWidth = $input.outerWidth(),
        inputHeight = $input.outerHeight();
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

1 participant