Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Jun 2010
    Posts
    2
    Vote Rating
    0
    DustinHES is on a distinguished road

      0  

    Default [FIXED-99] Rotating iPhone breaks kitchen sink example.

    [FIXED-99] Rotating iPhone breaks kitchen sink example.


    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

  2. #2
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    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.

  3. #3
    Ext User
    Join Date
    Jun 2010
    Posts
    2
    Vote Rating
    0
    DustinHES is on a distinguished road

      0  

    Default


    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

  4. #4
    Sencha - Sencha Touch Dev Team Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    19
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    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.

  5. #5
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    7
    TommyMaintz will become famous soon enough

      0  

    Default


    Thanks for the bug report. This should definitely not happen and will be fixed in the 1.0 release!

  6. #6
    Sencha User blessan's Avatar
    Join Date
    May 2010
    Posts
    316
    Vote Rating
    1
    blessan is on a distinguished road

      0  

    Default


    Is there any temporary solution for this?

  7. #7
    Sencha User blessan's Avatar
    Join Date
    May 2010
    Posts
    316
    Vote Rating
    1
    blessan is on a distinguished road

      0  

    Default


    this is a temp soln I am using. Add this in side the onOrientationChange function

    Code:
    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);
                    }
                }
            }

  8. #8
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    7
    TommyMaintz will become famous soon enough

      0  

    Default


    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.

  9. #9
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    7
    TommyMaintz will become famous soon enough

      0  

    Default


    Nevermind, this is not the case. Will investigate this further.

  10. #10
    Sencha User
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,243
    Vote Rating
    7
    TommyMaintz will become famous soon enough

      0  

    Default


    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.

Similar Threads

  1. Question to Cards of Kitchen Sink/ Events Example
    By msinn in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 30 Jul 2010, 12:53 PM
  2. [.8 -- iPhone] Kitchen Sink example - All ssyptes of layout issues
    By jay@moduscreate.com in forum Sencha Touch 1.x: Bugs
    Replies: 1
    Last Post: 19 May 2010, 9:58 AM
  3. Replies: 2
    Last Post: 28 May 2009, 1:14 PM
  4. rotating an image
    By Ciary in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 30 Apr 2009, 4:17 AM
  5. [FIXED][3.0] as of 3222 - SlidingPager.js breaks
    By jay@moduscreate.com in forum Ext 2.x: Bugs
    Replies: 4
    Last Post: 22 Feb 2009, 6:14 PM

Thread Participants: 3

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar