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