We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a3b1220 commit 296d274Copy full SHA for 296d274
DropdownMenu/DropdownMenu.swift
@@ -122,7 +122,11 @@ open class DropdownMenu: UIView {
122
var topOffset: CGFloat
123
switch oriention {
124
case UIInterfaceOrientation.landscapeLeft.rawValue, UIInterfaceOrientation.landscapeRight.rawValue:
125
- topOffset = landscapeTopOffset
+ if UIDevice.current.userInterfaceIdiom == .phone {
126
+ topOffset = landscapeTopOffset
127
+ } else {
128
+ topOffset = navigationController.navigationBar.frame.height + UIApplication.shared.statusBarFrame.height
129
+ }
130
default:
131
topOffset = portraitTopOffset
132
}
0 commit comments