Skip to main content

Bug Tracker

Side navigation

#12045 closed bug (invalid)

Opened July 09, 2012 04:56PM UTC

Closed July 24, 2012 08:27AM UTC

border-box on dynamically altered child elements in Chrome does not update correctly

Reported by: Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.2
Keywords: Cc:
Blocked by: Blocking:

See this example

Basically when adjusting the padding of a surrounding border-box element in Webkit, the inner border-box elements do not update like border-box, they update like content-box.

This does not seem to happen all the time, if there are only a couple of nested elements it seems fine and if all the ancestor elements are border-box again often it is fine.

Forcing jQuery to recalculate the width in Webkit after the change is a hacky solution (i.e. $('border-box-element').css({'width':'99.95%'}) and then set a timeout function to change it back again after 100ms or so) but obviously not ideal, especially since it relies on $browser to detect webkit which will be depricated....

Attachments (0)
Change History (4)

Changed July 09, 2012 06:36PM UTC by mikesherov comment:1

owner: →
status: newpending

Your fiddle is using 1.7.2, please use edge and report back if this is still an issue.

Changed July 09, 2012 07:16PM UTC by comment:2

status: pendingnew

Unfortunately I can't get jQuery UI to work on the fiddle with edge, not with either of the edge versions or the current release, I get the following console error:

Uncaught TypeError: Cannot call method 'addClass' of undefined

Possibly compatibility issues between edge and ui slider?

Changed July 09, 2012 07:23PM UTC by mikesherov comment:3

status: newpending

Got it. Than can you provide a test case that either doesn't use UI to demonstrate the issue, or use the edge version of slider which is supposed to be compatible with jquery edge?

Changed July 24, 2012 08:27AM UTC by trac-o-bot comment:4

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!