Skip to content

Commit c5dad12

Browse files
committed
Apply fix for newer Firefox from adopted-ember-addons#606
1 parent 65743e6 commit c5dad12

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

addon/mixins/sortable-item.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,8 @@ function getBorderSpacing(el) {
551551
el = $(el);
552552
if (el === undefined || el === null) return 0;
553553
let css = el.css('border-spacing'); // '0px 0px'
554-
let [horizontal, vertical] = css.split(' ');
554+
const [horizontal, initialVertical] = css.split(" ");
555+
const vertical = initialVertical === undefined ? horizontal : initialVertical;
555556

556557
return {
557558
horizontal: parseFloat(horizontal),

0 commit comments

Comments
 (0)