diff --git a/PanModal-Xbingo.podspec b/PanModal-Xbingo.podspec index 7348564f..e57ddf0b 100644 --- a/PanModal-Xbingo.podspec +++ b/PanModal-Xbingo.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'PanModal-Xbingo' - s.version = '10.0.2' + s.version = '10.0.3' s.summary = 'Update PanModalPresentationController to support contentInsert' # This description is used to generate tags and improve search results. diff --git a/PanModal/Controller/PanModalPresentationController.swift b/PanModal/Controller/PanModalPresentationController.swift index 28ae0901..867aa4c2 100644 --- a/PanModal/Controller/PanModalPresentationController.swift +++ b/PanModal/Controller/PanModalPresentationController.swift @@ -176,6 +176,11 @@ open class PanModalPresentationController: UIPresentationController { guard let containerView = containerView else { return } + + // Fix bug issue https://github.com/slackhq/PanModal/issues/202 + if self.panContainerView.frame == .zero { + self.adjustPresentedViewFrame() + } layoutBackgroundView(in: containerView) layoutPresentedView(in: containerView)