We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
emberjs
Learn more about funding links in repositories.
Report abuse
2 parents 00d5f58 + 96f0116 commit 5ceca29Copy full SHA for 5ceca29
addon/src/utils/css-calculation.ts
@@ -8,7 +8,9 @@
8
*/
9
export function getBorderSpacing(el: Element) {
10
const css = getComputedStyle(el).borderSpacing; // '0px 0px'
11
- const [horizontal, vertical] = css.split(' ');
+
12
+ const [horizontal, initialVertical] = css.split(' ');
13
+ const vertical = initialVertical === undefined ? horizontal : initialVertical;
14
15
return {
16
horizontal: parseFloat(horizontal ?? ''),
0 commit comments