jasmine.Popup horizontalSwitch with horizontalAlign = right switches to left when overlapping right window border (from jasmine.specs)