woocommerce-ios
woocommerce-ios copied to clipboard
[Tablet Orders] Adding products when creating a new order causes -sometimes- a view glitch
For some reason this doesn't show in the recording despite I can clearly replicate and see it on the physical device, but it does show if I make an screenshot (?)
To reproduce:
~~1. On a physical device, tap on the "scan" button to scan a product via barcode scanner to add it to the order~~
2. Once added, tap in + to add a product from the list
3. Observe how the order creation view is not correctly shown. Tapping on the products to the left, or the bottom drawer fixes this state.
I can't repro this; please could you check with trunk now that everything's merged?
Yes, this is in trunk. On an iPad Pro 12.9-inch 3rd gen, OS 15.3.1 . I've updated the title since it also happens when I don't scan products, but also when I just add products manually (It didn't happen the first times though, so is not always) 🤔
I'm not quite sure how to debug this further, this is the view hierarchy:
From my understanding could be pointing to an issue between the ScrollView and the grouped VStacks here. I'm wondering if could be related to some combination of the use of ScrollViewProxy and .ignoresSafeArea horizontally on that view?
Yep, I can repro this on iOS 15 too. Not got time to dig in to it immediately but I'll look later. Just wanted to confirm it's not only you.
I can repro it on an iPhone in Portrait too, so it's not limited to iPad.
I can also repro it on WCiOS 16.5 (from TestFlight), which predates all the work we've done here. It's a long-standing issue.