Closed Bug 712605 Opened 13 years ago Closed 13 years ago

clientWidth does't include paddings

Categories

(Core :: Layout: Form Controls, defect)

x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 157846

People

(Reporter: mynthon1, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20100101 Firefox/8.0
Build ID: 20111104165243

Steps to reproduce:

Trying to get clientWidth from element.


Actual results:

clientWidth returns element_width - scrollbar_width.


Expected results:

According to https://developer.mozilla.org/en/DOM/element.clientWidth clientWidth should return element_width + padding_left + padding_right - scrollbar_width.

See also attached file.
Attachment #583455 - Attachment mime type: text/plain → text/html
See bug 484257
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Component: General → Layout: Form Controls
Product: Firefox → Core
QA Contact: general → layout.form-controls
Resolution: --- → DUPLICATE
Version: 8 Branch → Trunk
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: