Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha User
    Join Date
    Apr 2008
    Posts
    51
    Vote Rating
    0
    Michou is on a distinguished road

      0  

    Arrow [PR4] orientationchange not working

    [PR4] orientationchange not working


    Hi,

    a little problem with orientationchange.
    Code:
        init: function() {
            Ext.Viewport.on('orientationchange', 'handleOrientationChange', this, { buffer: 50 });
            
        },
        handleOrientationChange: function (v, orientation, width, height) {
            console.log(v, orientation, width, height);
        }
    in the doc the second parameter (orientation) is supposed to be a string and I have in fact the width.
    parameters 3 & 4 both return height
    Code:
    Ext.apply.create.Class 1280 634 634
    and each time the event is firing we have the same values

    thx

  2. #2
    Ext JS Premium Member Brendan Carroll's Avatar
    Join Date
    May 2007
    Location
    Balmer, MD.
    Posts
    139
    Vote Rating
    1
    Brendan Carroll is on a distinguished road

      0  
    -BC ...

  3. #3
    Sencha User
    Join Date
    Apr 2008
    Posts
    51
    Vote Rating
    0
    Michou is on a distinguished road

      0  

    Default


    Yes, sorry, not seen.

  4. #4
    Sencha User
    Join Date
    Apr 2008
    Posts
    51
    Vote Rating
    0
    Michou is on a distinguished road

      0  

    Default


    HTML Code:
    Looks like we can't reproduce the issue or there's a problem in the test case provided.
    for those still thinking that there is a problem with orientationchange, that is the solution :
    Code:
    //*************************************************************************************************
    //view/main
      
      Ext.define('mtApp.view.Main', {
            extend  : 'Ext.Container',
            xtype   : 'mainview',
            config  : {
                fullscreen: true,
                layout    : 'fit',
                html      : 'test'
            }
      });
    
    //*************************************************************************************************
    //controller/main
      
      Ext.define('mtApp.controller.Main', {
        extend: 'Ext.app.Controller',
        
        config: {
            profile: Ext.os.deviceType.toLowerCase(),
            refs   : {
                main: {
                    selector  : 'mainview',
                    xtype     : 'mainview',
                    autoCreate: true
                }
            }
        },
            
        init: function() {
            Ext.Viewport.on('orientationchange', 'handleOrientationChange', this, { buffer: 50 });
        },
        
        handleOrientationChange: function (t, o, w, h) {
            // not working
            this.getMain().setHtml('orientationchange('+o+') width: ' + w + ', height: ' + h);
            // working
            console.log(Ext.Viewport.getOrientation(),Ext.Viewport.getSize().width,Ext.Viewport.getSize().height);
        },
        
        updateProfile: function(profile) {
            this.getMain();
        }
        
      });
      
    //*************************************************************************************************
      Ext.application({
        
        name               : 'mtApp',
        
        views              : ['Main'],
        controllers        : ['Main']
        
      });

Thread Participants: 1

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