#201 closed bug (invalid)
[PATCH] innerWidth and innerHeight fails in IE with no borders
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | |
Component: | ajax | Version: | |
Keywords: | "" | Cc: | "" |
Blocked by: | Blocking: |
Description
If an element does not have a border the innerWidth and innerHeight functions of the dimensions plugin cause a NaN result. It is a very simple fix. Just need to add || 0
to each of the parseInt
calls on line 81 and 99.
Line 81:
this.get(0).offsetHeight - parseInt(this.css("borderTop")) - parseInt(this.css("borderBottom"));
Should now be
this.get(0).offsetHeight - parseInt(this.css("borderTop") || 0) - parseInt(this.css("borderBottom") || 0);
Line 99:
this.get(0).offsetWidth - parseInt(this.css("borderLeft")) - parseInt(this.css("borderRight"));
Should now be
this.get(0).offsetWidth - parseInt(this.css("borderLeft") || 0) - parseInt(this.css("borderRight") || 0);
Attachments (1)
Change History (4)
Changed 16 years ago by
Attachment: | dimensions.diff added |
---|
comment:2 Changed 16 years ago by
Component: | → ajax |
---|---|
Priority: | → blocker |
Resolution: | → invalid |
Status: | reopened → closed |
Type: | → bug |
SPAMPOLICE
comment:3 Changed 11 years ago by
comment:6 Changed 5 years ago by brandon
- Status changed from reopened to closed forfait mobile Forfait sans engagement Forfait mobile appels illimités Forfait sms illimités Forfait mobile internet Forfait bloqué Forfait Blackberry
Note: See
TracTickets for help on using
tickets.
The diff.