Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8504371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:00:42+00:00 2026-06-11T02:00:42+00:00

Open this link in chrome browser http://jsfiddle.net/A8fhT/3/ and see element width (270), next make

  • 0

Open this link in chrome browser http://jsfiddle.net/A8fhT/3/ and see element width (270), next make zoom out (ctrl + “-“) and now see width (269). On Firefox everything is ok, any solution for chrome, or this is bug?

Edit:
A.K example http://jsfiddle.net/akhurshid/5E9kj/
Image: http://s7.postimage.org/qgezkqcor/image.png

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T02:00:44+00:00Added an answer on June 11, 2026 at 2:00 am

    Issue was only with absolute positioned elements, so I modified jQuery function (// lines).

        function getWidthOrHeight(elem, name, extra) {
    
            //deletes position//
            var $elem = $(elem); //
            var position = $elem.css('position'); //
            $elem.css('position', ''); //
    
            // Start with offset property
            var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
            i = name === "width" ? 1 : 0,
            len = 4;
    
            if (val > 0) {
                if (extra !== "border") {
                    for (; i < len; i += 2) {
                        if (!extra) {
                            val -= parseFloat(jQuery.css(elem, "padding" + cssExpand[i])) || 0;
                        }
                        if (extra === "margin") {
                            val += parseFloat(jQuery.css(elem, extra + cssExpand[i])) || 0;
                        } else {
                            val -= parseFloat(jQuery.css(elem, "border" + cssExpand[i] + "Width")) || 0;
                        }
                    }
                }
    
                //sets position//
                $elem.css('position', position); //
    
                return val + "px";
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How do I open a link in the same browser tab? I tried this
To open this link with chrome 15 will pop up a download dialog, but
As you can see on this link, http://jsbin.com/ozapol/9 , Jquery disables the scrollbars on
In this link, there is a code for open recent files and it seems
When I click a link, I want to choose a browser to open only
Here is a link to my page: http://myweb.students.wwu.edu/~tuckerb2/cs202/peanuts/project/open.html . I'm having trouble with all
Normally, this combination opens a link as a new tab in Chrome, Firefox, and
I have this tag: <a id=link1 runat=server href=http://www.selab.isti.cnr.it/ws-mate/example.pdf title=PDF>Open iFrame</a> This link opens a
Firefox doesn't know how to open this address because the protocol (c) isn't associated
I have other-window.xaml file and trying to open this from window.xaml on button click.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.