| This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal. |
we have created a new popup under POPUPS section.It looks fine in Android,but in IOS we are getting some extra height.But we are not giving any margin bottom and all.Can you please help us on this?**Image removed for security reasons**
@Cvwl Millew
If you are running the app on iOS13 version device then it is expected behaviour. To avoid the issue, you need to change popup style to Kony popup or you need to anchor the popup to any widget.
@Twvcey Rvndvll Can you please explain me how to change popup style or how to anchor the popup to any widget
@Twvcey Rvndvll Please let me know about this
@Cvwl Millew
Popup behaviour has changed from iOS 13 onwards. Whenever we set some size to the popup, native increases the popup size by some amount. This increase in size is to accommodate the popup anchor size.
Due to this issue, we had fixed the popup implementation. By anchoring the popup, the height of the popup won't increase. If anchoring is not an option, please use {{POPUP_TYPE_KONY_STYLE}} instead of {{POPUP_TYPE_NATIVE_STYLE}}. Open the popup in Visualizer and in the popup property window there you have an option to change the style to Kony.
Please refer [Popup Documentation|https://docs.kony.com/7_3/konylibrary/visualizer/viz_widget_prog_guide/Content/Popup_Methods.htm] for any other queries
@Twvcey Rvndvll Please refer the below attached screenshot.There is nothing like the property what you are saying.**Image removed for security reasons**
@Cvwl Millew
popupStyle is iPhone/iPad platform specific property which is missing from the Visualizer. Can you set the same at run time. Check the device O.S using kony.OS() API and set the popupStyle.
popup1.popupStyle = constants.POPUP_TYPE_KONY_STYLE;
https://docs.kony.com/7_3/konylibrary/visualizer/viz_widget_prog_guide/Content/Popup_Properties.htm#popupSty
@Twvcey Rvndvll I have tried but it is not working.FYI,I just check by alerting the popupname.popupStyle and it returns 0.Please see the below attached screenshot**Image removed for security reasons**
@Cvwl Millew
Is it possible for you to share me a sample app to test it from end.
@Twvcey Rvndvll Please find the project below.
@Twvcey Rvndvll Please let me intimate if there is any update.
@Twvcey Rvndvll Are you able to replicate the issue using the sample project that I have provided yesterday.Please let me know asap,because it's like a blocker for us.
@Cvwl Millew
Identify the root cause of the issue, when we give the margin or padding to the child widgets like label and button then we are getting the additional gap at the bottom the VBox. This issue will reproduce only in iOS13 devices.
As per the widget user guide, Popup ans Box widgets are deprecated and there is no fix for those widgets. To avoid the issue you need to remove the margin and padding from the child widgets of the VBox.