Skip to content

Commit

Permalink
feat: slackhq#202
Browse files Browse the repository at this point in the history
  • Loading branch information
yanxiaobing committed Nov 14, 2023
1 parent 0bd8ac6 commit 6bbad54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion PanModal-Xbingo.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 5 additions & 0 deletions PanModal/Controller/PanModalPresentationController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6bbad54

Please sign in to comment.