Results 1 to 3 of 3
  1.    #1  
    I need a way for my app to detect when a banner notification has come in so that I know to properly change my app (e.g. resize screen, disable features).

    Is there a Mojo function for this? Or even a way to notice the app screen size changed?
  2. #2  
    Code:
    setup: function() {
        this.resizeHandler = this.resized.bindAsEventListener(this);
        Mojo.Event.listen(this.controller.window, 'resize', this.resizeHandler, false);
    },
    
    resized: function(event) {
        var whatsLeft =  this.controller.window.innerHeight 
        //now do something with your layout once you know.  
       
    },
    
    cleanup: function() {
        Mojo.Event.stopListening(this.controller.window, 'resize', this.resizeHandler, false);
    }
  3. #3  
    ill add to the help suggestion :P
    Mojo.Event - Detect Card Resize - WebOS101

    same as above but compatibility for the pixi

Posting Permissions