refactor(tooltip align): make code for getAutoAlign easier to read
refactor(tooltip align): make code for getAutoAlign easier to read

affects: da39a3ee5e6b4b0d3255bfef95601890afd80709@crave/farmblocks-tooltip

CraveFood/farmblocks,CraveFood/farmblocks