From e3659764e3fe6083d8c150128e52cdee02ea6943 Mon Sep 17 00:00:00 2001 From: grassick Date: Mon, 7 Nov 2016 15:46:42 -0500 Subject: [PATCH] Prefer left-alignment when both are equal --- src/react-float-affixed.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/react-float-affixed.jsx b/src/react-float-affixed.jsx index d680b32..067df4e 100644 --- a/src/react-float-affixed.jsx +++ b/src/react-float-affixed.jsx @@ -28,7 +28,7 @@ function align(aedge,pedge) { function edgeAlignMaxSpace(amin, amax, pmin, pmax, space) { let rspace = space - amax; let lspace = amin; - return (rspace <= lspace) ? amax - pmax : amin - pmin; + return (rspace < lspace) ? amax - pmax : amin - pmin; } // given a delta, popup bounds, and available space