Side navigation
#8783 closed bug (duplicate)
Opened April 06, 2011 07:06AM UTC
Closed April 25, 2011 10:12PM UTC
Last modified April 25, 2011 10:22PM UTC
1.5.2 getComputedStyle bug
Reported by: | tasoss@gmail.com | Owned by: | rwaldron |
---|---|---|---|
Priority: | blocker | Milestone: | 1.next |
Component: | support | Version: | 1.5.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hello.By using 1.5.1 or 1.5.0 i don't get this error.
Particularly i get"
document.defaultView.getComputedStyle(div, null) is null
stack:
"@:1\\n((function (selector, context) {return new jQuery.fn.init(selector, context, rootjQuery);}))@http://deucalion/WebServeCRM/js/jquery/jquery-1.5.2.js:1286\\n([object HTMLDocument],[object Array])@http://deucalion/WebServeCRM/js/jquery/jquery-1.5.2.js:975\\n()@http://deucalion/WebServeCRM/js/jquery/jquery-1.5.2.js:414\\n([object Event])@http://deucalion/WebServeCRM/js/jquery/jquery-1.5.2.js:881\\n"
"
The div element at this time is
<div style="padding-left: 1px; width: 1px; margin-right: 0pt;"></div>
I suppose that the corrections that you made for bug #3333 broke this one in firefox.
Using firefox 4.0
Thanks!
Attachments (0)
Change History (6)
Changed April 06, 2011 12:13PM UTC by comment:1
component: | unfiled → css |
---|---|
owner: | → rwaldron |
priority: | undecided → blocker |
status: | new → assigned |
Changed April 25, 2011 09:19AM UTC by comment:2
A quick fix, which worked for me:
change line 1283 from
if ( document.defaultView && document.defaultView.getComputedStyle ) {
into
if ( document.defaultView && document.defaultView.getComputedStyle && document.defaultView.getComputedStyle(div, null) ) {
Changed April 25, 2011 10:08PM UTC by comment:3
thanks for the comment anonymous :)
Changed April 25, 2011 10:12PM UTC by comment:4
resolution: | → duplicate |
---|---|
status: | assigned → closed |
Changed April 25, 2011 10:22PM UTC by comment:6
component: | css → support |
---|