Inline styles not removed after sorting
|Reported by:||antin||Owned by:||paul|
This is related to ticket #3491. During the sort process a bunch of inline styles are applied to the element and while they are 'reset' they are not removed after the sorting is complete.
The particular issue I am having is due to the opacity being set during drag. Once the element has finished sorting jquery simply 'clears' the filter style, but actually leaves it there. Unfortunately as soon as the filter style is present (even if it is blank) IE 7 stops anti-aliasing the text.
Ticket #3491 has been closed and marked 'wontfix' which I believe to be a mistake. There is a very simple fix that would satisfy everyone.
At the very top of the _mouseStart function simply save a copy of the inline style on the element prior to sort:
o._style = $(this.currentItem).attr('style');
And then at the bottom of the _mouseStop function revert to the original style:
This way the style can be modified without concern during the drag process and there is no need to 'carefully' undo all the minor changes at the end.