Thank you for reporting this bug. We will make it our priority to review this report.
  1. #11
    Sencha User
    Join Date
    Apr 2012
    Posts
    9
    Vote Rating
    2
    pksiv is on a distinguished road

      0  

    Default


    I've tested a small app on both a Motorola Xoom and a Samsung Galaxy Tab 10.1 and it seems to consistently be reporting the reverse orientation.

  2. #12
    Sencha User
    Join Date
    Apr 2012
    Posts
    4
    Vote Rating
    0
    alexgibson is on a distinguished road

      0  

    Default


    Any updates on this issue? Am running into this on various ICS devices including the Galaxy Nexus, both with the stock browser and Chrome. Definitely seems to be a ST2 issue as the document body is resized ok, just not Ext.Viewport…

  3. #13
    Sencha Premium Member
    Join Date
    Jan 2011
    Posts
    39
    Vote Rating
    1
    OhmzTech is on a distinguished road

      0  

    Default PhoneGap Event

    PhoneGap Event


    I started running into this problem myself, and while it's not a show stopper and I have faith in the Sencha team to address it, it is rather annoying. I didn't want to implement the polling method since there is already a lot going on in my application, however I decided to use the PhoneGap event "resume" and listen on that. When it fires I just did a manual resize of the viewport (Ext.Viewport.setSize(window.innerWidth,window.innerHeight). At the very least it will catch resizing issues that happen when the app is being called from the background, and users that attempt to lock/unlock their phone when the problem happens (as many of us do at the first sign of any app issues) it will be fixed.

  4. #14
    Sencha Premium Member robert_k's Avatar
    Join Date
    Jun 2012
    Posts
    35
    Vote Rating
    1
    robert_k is on a distinguished road

      0  

    Exclamation Oh the irony of it all...

    Oh the irony of it all...


    I can confirm that the Samsung Galaxy S2, running 4.0.4 ICS, has this same issue in the built-in browser, and in Dolphin browser.

    I opened a paid support ticket with Sencha and was told:

    The engineering team informed that we have not supported Android 3.x and up. So, it will be a feature request to have the engineering team to provide support for Android 3.x and up devices.
    A bug report TOUCH-1308 is filed as your reference.
    In all my reading I've not found anywhere that this policy is stated. This is like someone deciding to not support IE 9 or 10, or the latest version of Chrome.

  5. #15
    Touch Premium Member hotdp's Avatar
    Join Date
    Nov 2010
    Location
    Denmark
    Posts
    603
    Vote Rating
    14
    hotdp will become famous soon enough

      0  

    Default


    There must be something the person misunderstood:
    http://www.sencha.com/products/touch/features/
    It says 4 many places also it would be strange not to support 20% of all Android devices.

  6. #16
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Berne, Switzerland
    Posts
    714
    Vote Rating
    42
    ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about ingo.hefti has a spectacular aura about

      0  

    Default


    Well maybe they just meant Android V3.n - as it was for tablets only (and crappy too).
    V4 is (should be) a whole different story...

  7. #17
    Sencha Premium Member robert_k's Avatar
    Join Date
    Jun 2012
    Posts
    35
    Vote Rating
    1
    robert_k is on a distinguished road

      0  

    Thumbs up


    The statement was clarified. Sencha Touch 2.1 and its RC should fix the issue. I've tested one of the nightly builds and it fixes the issue.

    But until it's fixed you'll need to patch it yourself. I've seen a lot of "fixes" setting the viewport dimensions, but you should only set the vertical dimension (which is what breaks). In my testing reseting the viewport entirely causes other bugs.

    Code:
    var bufferedResize = Ext.Function.createBuffered(function() {  if(Ext.Viewport.getHeight() !== window.innerHeight){
          Ext.Viewport.setHeight(window.innerHeight);
      }
    }, 1000);
    
    
    window.addEventListener('orientationchange', bufferedResize);

  8. #18
    Sencha Premium Member
    Join Date
    Aug 2008
    Posts
    209
    Vote Rating
    4
    squarefan is on a distinguished road

      0  

    Default


    For anybody who is running into the same issue - it seems to mainly happen when used in combination with PhoneGap or Sencha Build. DO NOT rely on the orientation that Sencha returns to you... it is not reliable and will give you grief. I ended up implementing a small native bridge to handle the orientation check myself (should work on all Android versions):

    JAVA - Add to MainActivity.java
    Code:
        @JavascriptInterface
        public String getCurrOrient(){
        	
        	String orient = "unknown";
        	
            Configuration config = getResources().getConfiguration();
            if(config.orientation == Configuration.ORIENTATION_LANDSCAPE) {
            	// LANDSCAPE
            	//Log.w("Orientation","Landscape");
            	orient = "landscape";
            }
            else if (config.orientation == Configuration.ORIENTATION_PORTRAIT) {
            	// PORTRAIT
            	//Log.w("Orientation","Portrait");
            	orient = "portrait";
            }
            return orient;
        }
    JavaScript:
    Code:
        function getOrientation() {
            return Android.getCurrOrient();
        }
    Solved the problem for me!

  9. #19
    Sencha Premium Member
    Join Date
    Jan 2011
    Posts
    39
    Vote Rating
    1
    OhmzTech is on a distinguished road

      0  

    Default


    Quote Originally Posted by squarefan View Post
    For anybody who is running into the same issue - it seems to mainly happen when used in combination with PhoneGap or Sencha Build. DO NOT rely on the orientation that Sencha returns to you... it is not reliable and will give you grief. I ended up implementing a small native bridge to handle the orientation check myself (should work on all Android versions):
    So are you saying that the issue here stems from the JS side not picking up the correct orientation from native? What should be done once you call your Javascript and get the orientation reported from the native side? Resize the viewport?

  10. #20
    Sencha Premium Member robert_k's Avatar
    Join Date
    Jun 2012
    Posts
    35
    Vote Rating
    1
    robert_k is on a distinguished road

      0  

    Exclamation It's baaaaack!

    It's baaaaack!


    It looks like Sencha Touch 2.1.1 has much of the same problem the previous version did. While the viewport is resized better when the orientation change occurs, a Tab.Panel won't have visible tabs after the orientation changes twice.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi