I'm submitting a ...
[x] bug report
[ ] feature request
[ ] support request
Current behavior:
While loading content via AJAX, .jconfirm-content-pane doesn't have a smooth height transition, it just jumps to content height value. But if contents height is changed after that - .jconfirm-content-pane's height changes smoothly as expected.
It's happening since v3.3.0.
smoothContent is set to true.
Expected behavior:
Prior to v3.3.0, when you load content via AJAX call and, after loading is finished (loading spinner is gone), .jconfirm-content-pane would smoothly change its height value to fit the content height.
Steps to reproduce:
Described above.
Related code:
After some digging I've found what the problem is:
If you change height from "auto" to "0" the problem vanishes (at least for me). I think it's because CSS property "transition" doesn't work with "auto" values.
jquery-confirm version: v3.x.x
I'm submitting a ... [x] bug report [ ] feature request [ ] support request
Current behavior: While loading content via AJAX, .jconfirm-content-pane doesn't have a smooth height transition, it just jumps to content height value. But if contents height is changed after that - .jconfirm-content-pane's height changes smoothly as expected. It's happening since v3.3.0. smoothContent is set to true.
Expected behavior: Prior to v3.3.0, when you load content via AJAX call and, after loading is finished (loading spinner is gone), .jconfirm-content-pane would smoothly change its height value to fit the content height.
Steps to reproduce: Described above.
Related code: After some digging I've found what the problem is:
If you change height from "auto" to "0" the problem vanishes (at least for me). I think it's because CSS property "transition" doesn't work with "auto" values.
Other information: https://github.com/craftpip/jquery-confirm/blob/00b4a03e62d4122e302bc5e3064aa975f827cdcb/css/jquery-confirm.css#L340