Changes between Version 1 and Version 2 of Ticket #36336, comment 7


Ignore:
Timestamp:
Apr 27, 2025, 8:43:53 AM (5 months ago)
Author:
Jan Tumpa

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36336, comment 7

    v1 v2  
     1I agree the issue is most likely with `Element.outerWidth()` after looking into this.
     2
     3Furthermore, jQuery themselves also discourage the "show and hide" method for calculating the element width.
     4
     5"jQuery will attempt to temporarily show and then re-hide an element in order to measure its dimensions, but this is unreliable and (even when accurate) can significantly impact page performance. This show-and-rehide measurement feature may be removed in a future version of jQuery."
     6
     7This is most likely due to UX and performance reasons and I don't feel this would be a good fix to the issue here.
     8
     9Additionally, while having the support for the "open" class would be nice, it still doesn't fix the underlying issue.
     10
     11
     12I honestly have no idea how this could be reliably fixed without the collapse being opened by default.
Back to Top