Skip to content

Commit 6081edd

Browse files
authored
Fix a split view mode on iPad (#24705)
1 parent 9b2a932 commit 6081edd

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

RELEASE-NOTES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
-----
33
* [*] New Stats: Add support for "weeks" granularity [#24767]
44
* [*] New Stats: Fix dark mode support in custom range picker [#24770]
5+
* [*] Fix Split View mode on iPad on some scenarios in portrait mode [#24705]
56

67
26.1
78
-----

WordPress/Classes/System/Root View/SplitViewRootPresenter.swift

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,7 @@ final class SplitViewRootPresenter: RootViewPresenter {
7979
splitVC.preferredSupplementaryColumnWidth = UISplitViewController.automaticDimension
8080
}
8181

82-
switch selection {
83-
case .notifications:
84-
splitVC.preferredSplitBehavior = .tile
85-
default:
86-
splitVC.preferredSplitBehavior = .displace
87-
}
82+
splitVC.preferredSplitBehavior = selection == .notifications ? .tile : .automatic
8883

8984
let content: SplitViewDisplayable
9085
switch selection {

0 commit comments

Comments
 (0)