Skip to content

Commit 2c5585f

Browse files
authored
Merge pull request #6951 from woocommerce/issue/6950-orders-split-view
Orders tab: adapt to various screens sizes for iPad split view support in iOS 15
2 parents 600cab1 + b4a1165 commit 2c5585f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

RELEASE-NOTES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- [internal] Order Creation: Adding new products, shipping, fee, or customer details to an order now blocks the UI immediately while the order is syncing remotely. [https://github.com/woocommerce/woocommerce-ios/pull/6974]
1515

1616
- [*] Coupons: Now it's possible to update discount types for coupons. [https://github.com/woocommerce/woocommerce-ios/pull/6935]
17+
- [*] Orders tab: the view width now adjusts to the app in tablet split view on iOS 15. [https://github.com/woocommerce/woocommerce-ios/pull/6951]
1718

1819
9.2
1920
-----

WooCommerce/Classes/ViewRelated/Orders/OrdersSplitViewWrapperController.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ private extension OrdersSplitViewWrapperController {
8282
addChild(ordersSplitViewController)
8383
view.addSubview(contentView)
8484
ordersSplitViewController.didMove(toParent: self)
85+
86+
contentView.translatesAutoresizingMaskIntoConstraints = false
87+
view.pinSubviewToAllEdges(contentView)
8588
}
8689
}
8790

0 commit comments

Comments
 (0)