Modify ↓
Ticket #10782 (closed bug: fixed)
Incorrect calculating width
| Reported by: | anonymous | Owned by: | mikesherov |
|---|---|---|---|
| Priority: | low | Milestone: | 1.7.2 |
| Component: | css | Version: | 1.7 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
If parent is hidden width() represents width in pixels however it's in percent.
Change History
comment:1 Changed 19 months ago by timmywil
- Priority changed from undecided to low
- Status changed from new to open
- Component changed from unfiled to css
- Milestone changed from None to 1.next
comment:2 Changed 19 months ago by timmywil
- Owner set to timmywil
- Status changed from open to assigned
comment:3 Changed 19 months ago by mikesherov
@timmywil, #9945 is the same thing essentially, can we tackle both in 1.7.2 please? I'll gladly jump on it.
comment:8 Changed 19 months ago by timmywil
- Status changed from assigned to closed
- Resolution set to fixed
When the width/height computed unit is not pixels, return that instead. Fixes #10782.
- Reordered some of css.js in preparation for jshint undef. Changeset: 9bea2167c434d5b97643f53da16b04927dc02a7d
comment:10 Changed 18 months ago by dmethvin
#11041 is a duplicate of this ticket.
comment:11 Changed 18 months ago by dmethvin
#11051 is a duplicate of this ticket.
comment:12 Changed 13 months ago by anonymous
This is still broken. Both the jsfiddle above (using 1.7.2) and production code still show this problem.
comment:13 Changed 10 months ago by anonymous
For me it's broken, too in jQuery 1.8.
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Confirmed. http://jsfiddle.net/timmywil/CaJNB/3/
We run into problems when padding and margin do not have the same unit, so perhaps we should normalize to 0 when the unit is not pixels.