PDA

View Full Version : [FIXED-99] Rotating iPhone breaks kitchen sink example.



DustinHES
22 Jun 2010, 1:19 PM
On the iPhone, the Kitchen Sink demo fails when the device is rotated to landscape mode. It doesn't keep the fullscreen mode and positions buttons and tabs incorrectly. This happens with any version of iOS that I've tried (3.0 or 4.0). However, when using the iPad, the demo (and all other demos) work perfectly.

Any word on when this might be resolved? I'm currently working on a mobile web app and am thrilled to see Sencha. It's going to make our app much easier to build and provides great features already. Keep up the great work!

Regards,
Dustin

Jamie Avins
22 Jun 2010, 1:25 PM
The kitchen sink was originally only going to be an example for use on the iPad.. There is still some work that is being done to clean up issues with fitting all the components being showcases in landscape on both Android and iPhone.

DustinHES
22 Jun 2010, 1:32 PM
Oh. I see. Is that planned as part of the 1.0 release then? Or is Sencha really targeting the iPad for 1.0? The big draw for developers (from my perspective) is that you've developed Sencha to be resolution independent, which is the biggest hurdle in developing for these devices.

Also, in case it wasn't clear, the rotation issue occurs with all of the demos, it's not just the kitchen sink demo.

Regards,
Dustin

Jamie Avins
22 Jun 2010, 1:34 PM
Although applications can be resolution independent, there is often better ways to present the same information when more space is available. We are looking on including a presenter class to help with this in the near future.

TommyMaintz
22 Jun 2010, 2:48 PM
Thanks for the bug report. This should definitely not happen and will be fixed in the 1.0 release!

blessan
27 Jul 2010, 9:41 PM
Is there any temporary solution for this?

blessan
27 Jul 2010, 10:48 PM
this is a temp soln I am using. Add this in side the onOrientationChange function



if (Ext.platform.isPhone) {
if(this.currentCard) {
var ipw = screen.width;
var iph = window.innerWidth;
if(Ext.orientation == 'portrait') {
this.currentCard.setSize(iph,305);
}
if(Ext.orientation == 'landscape') {
this.currentCard.setSize(iph,155);
}
}
}

TommyMaintz
28 Jul 2010, 1:59 PM
I think this only happens when you have the debug bar enabled. This will make it so that in portrait it thinks it is in landscape because the height is still lower then the width. I will see if we can find a way to fix this.

TommyMaintz
28 Jul 2010, 2:00 PM
Nevermind, this is not the case. Will investigate this further.

TommyMaintz
28 Jul 2010, 2:43 PM
Ok, it turned out that setActiveItem (and thus setCard) didnt make sure that the card you were switching to was a child item of the container. It rendered it properly, switched to it correctly, but never added it to the items collection of the container. So when the layout was looping over child items to lay them out after an orientationChange, it would just skip the card.

This has been fixed and will be part of the next release (0.9.3) due beginning of next week.

blessan
28 Jul 2010, 8:07 PM
I noticed this same issue in the ipad just now. Will this also be fixed in 0.9.3

Jamie Avins
29 Jul 2010, 9:37 AM
Yes, it's currently effecting all devices.