effects.slide: fix: reset width and height on the end of animation, #5245#314
effects.slide: fix: reset width and height on the end of animation, #5245#314tomykaira wants to merge 1 commit intojquery:masterfrom
Conversation
…et distance before wrapping. #5245-Slide Effect Broken With Relative Width
|
https://gist.github.com/981270 |
|
Looks pretty great, I just noticed one flaw in this... Take your test case and change the border to You'll notice that the bottom border is falling off of the box while it animates after your fix, but not in master... Please also pay attention to whitespace guidlines, etc... http://wiki.jqueryui.com/w/page/12137737/Coding-standards The commit message is really close - Use |
|
Here - I dug a bit further and came up with this: gnarf/jquery-ui@jquery:master...ticket-5245 This commit fixes the border issue by storing the width/height of the element before wrapping, and setting it to the px value after wrapping. This commit is just a Unit Test. |
|
Out of curiosity, does this bug affect any other effects? If so, we might be able to solve this in createWrapper |
|
Yes, my patch does not work with large border. And yours works well. I found this occurs also in bounce and clip. |
|
Okay, I'm going to change the ticket on trac then - Do you want to look at doing the |
|
I want to modify Thank you for changing the ticket and give me a good solution. |
|
Awesome, assigning this bug to you then. |
|
One thing to mention about modifiying this in createWrapper - it means that "width" and "height" need to be saved/restored by effects that use createWrapper now (unless they are intentionally editing them) --- You did that in this pull for this effect, but there may be others that will need it. |
effects.slide: fix: reset width and height on the end of animation, get distance before wrapping. #5245-Slide Effect Broken With Relative Width