Closed bash88 closed 7 years ago
Yeah this is bugging me too - takes a lot of fiddling around with dynamically setting position when opening actionsheet and rotating etc. Is there a quick/easy workaround that opens it in middle as it did before ?
OK got it - The below centers the popup and hides the arrow
[popPresenter setPermittedArrowDirections:0];
popPresenter.sourceView = self.webView.superview;
popPresenter.sourceRect = CGRectMake(CGRectGetMidX(self.webView.bounds), CGRectGetMidY(self.webView.bounds),0,0);
Is there a way to center actionsheet on iPad without changing the source code of the plugin ?
@kahuna76 Your solution worked perfectly for me, could someone integrate it in the plugin ?
Great, published in 2.3.2
@EddyVerbruggen Hi, just tested 2.3.2, can't find the actual centering code in the changes ?
OMG, too much 🍾 .. hang on
Version 2.3.3 is a more sober version of 2.3.2. @geshub thanks for letting me know!
@EddyVerbruggen Tested and worked perfectly. Thanks again !
Hi Eddy,
Great plugin.
Since updating to the latest version after the iOS10 bug mentioned in #41 the actionsheet opens in the top left corner on iPad, because I didn't set position values. Now I'd like the sheet to open in the middle of the screen, like before. How would I go about doing this, other than inputting pixel values for both orientations?
Regards, Bas