winjs/winjs — pull request #106 by adamhewitt627 (2014-04-11 18:04:21+00:00)
Title: Proposed fix for a case where a flyout would show far away from its anchor.

When `_sometimesFitsAbove` returns false, `fitBottom` is never tried, even if the flyout could fit below just fine. In narrow views, left/right will also fail, leaving the flyout with little position data.