Make three panel mode landscape test more accurate

This commit is contained in:
Maurice Parker
2019-11-19 17:20:24 -06:00
parent 7148aac925
commit 504bb82f80

View File

@@ -329,7 +329,7 @@ class SceneCoordinator: NSObject, UndoableCommandRunner, UnreadCountProvider {
guard rootSplitViewController.traitCollection.userInterfaceIdiom == .pad && !rootSplitViewController.isCollapsed else {
return
}
if size.width > size.height {
if (size.width / size.height) > 1.2 {
if !isThreePanelMode {
transitionToThreePanelMode()
}