Bug Tracker

Modify

Ticket #11873 (closed bug: invalid)

Opened 12 months ago

Last modified 12 months ago

Dimensions on Chrome

Reported by: mobilex40@… Owned by:
Priority: low Milestone: None
Component: dimensions Version: 1.7.2
Keywords: Cc:
Blocking: Blocked by:

Description

Have an iFrame that located into a website, and into the iFrame trying to get it's dimensions by use:

var dimensions = {
    width:$(document).width(), 
    height:$(document).height()
};

For FF (V.12) works fine but for Chrome (V.19.0.1084.52 m) it's not work like expected and return wrong dimensions.

Fixed if by removed your IE6 Fallback in your development-version file, line 9357, removed the following lines:

if ( doc[ clientProp ] >= doc[ scrollProp ] ) {
    return doc[ clientProp ];
}

And now it's working fine.

Thanks!

Change History

comment:1 Changed 12 months ago by sindresorhus

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to dimensions

This was already removed:  https://github.com/jquery/jquery/commit/ba70f8aeb60038ae73b188e432c471f3b115a790

Please include a jsfiddle test case the next time you post an issue. Thanks.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.