Results 1 to 6 of 6

Thread: Viewport orientation change event not exposed

    Success! Looks like we've fixed this one. According to our records the fix was applied for DSGNR-1547 in a recent build.
  1. #1
    Touch Premium Member BostonMerlin's Avatar
    Join Date
    Aug 2010
    Location
    Boston
    Posts
    559
    Vote Rating
    44
      0  

    Default Viewport orientation change event not exposed

    I'm trying to monitor when the viewports orientation is changed (landscape / portrait) but i'm not seeing any way to do this from within the Designer. I'm told to bind to orientation change of the viewport, so i do the following:
    • Create new Sencha Touch 2 project using Sencha Designer build 311
    • Add a container view
    • Add a controller
    • Add a controller action
    • In the controller action, I can set controlQuery to 'viewport' but there is no targetType of 'Ext.Viewport' and there is no 'orientation' type value to select from in the name drop down list.
    • Also told to try binding again the 'resize' event of a control but nothing i've done seems to work at all.
    • I can easily bind against the 'tap' events of buttons and they all work using the method above, except where i substitute viewport for button and monitor the 'tap' event.
    Either this is a bug or i'm missing something.
    Thanks
    John

  2. #2
    Sencha User jjohnston's Avatar
    Join Date
    Sep 2010
    Posts
    567
    Vote Rating
    21
      0  

    Default

    Thanks for reporting this. I've opened a ticket for it, which we'll handle along with some other tickets we have regarding the viewport instance not being exposed for configuration.
    Jason Johnston
    @lojjic
    Sencha Architect Development Team

  3. #3
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,488
    Vote Rating
    147
      0  

    Default

    Jason and Dave did a bunch of the work to get this turned on in a near future build.
    Aaron Conran
    @aconran

  4. #4
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,488
    Vote Rating
    147
      0  

    Default

    This should be available in the current build out to the public (build 360).
    Aaron Conran
    @aconran

  5. #5
    Sencha User
    Join Date
    May 2012
    Posts
    1
    Vote Rating
    0
      0  

    Default Unless I'm being a bit slow...

    It's not appearing in Build 442 for me.

    Can you confirm the fixed version?

    Thanks

    John

  6. #6
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,488
    Vote Rating
    147
      0  

    Default

    Quote Originally Posted by john.hadfield@eon.com View Post
    It's not appearing in Build 442 for me.

    Can you confirm the fixed version?

    Thanks

    John
    Start a Touch Project
    Select the Application in the Inspector
    Search for Viewport in the Configuration grid
    Add a Viewport config by clicking the +
    Go to the viewport configuration by clicking the arrow ->
    Click the + next to event bindings
    Choose orientationchange
    Aaron Conran
    @aconran

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •