Bug Tracker

Opened 7 years ago

Closed 7 years ago

#12045 closed bug (invalid)

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

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

Description

See this example http://jsfiddle.net/22Wmg/9/

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....

Change History (4)

comment:1 Changed 7 years ago by mikesherov

Owner: set to mail@…
Status: newpending

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

comment:2 Changed 7 years ago by mail@…

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?

comment:3 Changed 7 years ago by mikesherov

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?

comment:4 Changed 7 years ago by trac-o-bot

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!

Note: See TracTickets for help on using tickets.