Skip to content

Commit 46d023b

Browse files
authored
Merge pull request #65 from s-panferov/patch-1
Fix: numeric aligns always discarded
2 parents b7cc0ab + aa843c2 commit 46d023b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/flowtip-core/src/flowtip.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,10 @@ const allRegions = {top: true, right: true, bottom: true, left: true};
810810
const noRegions = {top: false, right: false, bottom: false, left: false};
811811

812812
function normalizeAlign(align: ?Align): number {
813+
if (typeof align === 'number') {
814+
return align;
815+
}
816+
813817
if (align === 'start') {
814818
return 0;
815819
}

0 commit comments

Comments
 (0)