Skip to main content

Bug Tracker

Side navigation

#2783 closed bug (wontfix)

Opened May 03, 2008 09:10PM UTC

Closed March 18, 2009 03:29AM UTC

Last modified March 14, 2012 06:47PM UTC

width() and height() including border when set to thin, medium or thick in css

Reported by: mmurph211 Owned by: brandon
Priority: minor Milestone: 1.2.4
Component: dimensions Version: 1.2.3
Keywords: width height Cc:
Blocked by: Blocking:
Description

If the border-width is set to Thin, Medium or Thick the width() and height() functions will return the border-width included (in IE at least).

I have a script that doesn't have this bug located here:

http://www.matts411.com/webdev/an_ie_getcomputedstyle_method_for_block_elements

Attachments (0)
Change History (2)

Changed March 18, 2009 03:29AM UTC by brandon comment:1

resolution: → wontfix
status: newclosed

This is to much of an edge case to try and put a workaround into the library slowing down all other use-cases. Please use a different measurement to assign border width to have better control over the layout.

Changed February 09, 2011 10:51PM UTC by kellyselden comment:2

i came across this issue when working on a jquery ui plug-in. i see no work-around when you're working on a plug-in because you have no control over the borders they may set. i have to resort to hard-coding a pixel value based on the string IE returns.