voidberg/html5sortable — pull request #33 by omghax (2014-07-12 15:11:14+00:00)
Title: Fix incorrect outerHeight() value when using display: flex

This fixes an issue with `forcePlaceholderSize`, where `draggingHeight` was being set after the `dragging` element had been hidden. Doing so causes problems when using `display: flex`, since jQuery's outerHeight function appears to calculate the height as if the element were `display: block`.

Rather than reading outerHeight on every `dragover`, I read it once on `dragstart` and clear it on `dragend`. This fixes my use case, but could cause problems if for some reason the draggable changes height during dragging (not sure when, if ever, this would happen in practice).

I've run into this issue with Chrome 36, but haven't tried it in other browsers.