This project is archived and is in readonly mode.

#1065 ✓wontfix

getStyle function problem in opera

Reported by Avinash | November 4th, 2010 @ 01:07 PM | in 1.3.1 (closed)


I have one element with property display:none;
When I use $('element').getStyle('height'); It will return proper result in all browser except opera.
In opera its giving 0px because display property is set to none.
If I set the display property to block then it provide the proper result in all browser.
Is this known issue or not in picture yet.
My opera version is 10.63.


Comments and changes to this ticket

  • Arian

    Arian November 5th, 2010 @ 08:31 PM

    • State changed from “new” to “open”
    • Milestone set to 1.3.1
    • Assigned user set to “Arian”
    • Milestone order changed from “816” to “0”
  • gonchuki

    gonchuki November 10th, 2010 @ 06:43 PM

    Elements with 'display: none' cannot be directly measured as the browsers don't give a layout to those elements until they are actually shown. Try using Element.Measure from MooTools More, that should surely work.

  • Arian

    Arian December 25th, 2010 @ 11:56 PM

    • State changed from “open” to “wontfix”

    This is indeed why Element:measure was invented.

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins