Results 1 to 2 of 2

Thread: FormPanel.hide() becomes blank screen.

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    Indonesia
    Posts
    23
    Vote Rating
    0
      0  

    Default FormPanel.hide() becomes blank screen.

    Hi all,

    I want to ask whether any of you ever encounter this case. I have a floating FormPanel. When I call the hide() method, suddenly it shows white screen. Am I doing something wrong here? Here is the code :

    Code:
           this.formNurseAuthenticate = new Ext.form.FormPanel({
                floating: true,
                hideOnMaskTap: false,
                centered: true,
                items: [this.fieldsetAuthenticate],
                dockedItems: this.toolbarBottomAuthenticate
            })
    Code:
                          this.buttonAuthenticate.on({
                                tap: function(btn, evt) {
                                    document.activeElement.blur();
                                    
                                    var values = this.formNurseAuthenticate.getValues();
                                    
                                    this.passwordfieldPassword.setValue('');
                                    this.formNurseAuthenticate.hide();
    
    
                                    Ext.Msg.alert("", "Changing to nurse mode.");
                                    
                                    if(values.password == this._callerController._nursePassword) {
                                        this._callerController._orderingSession.mode = "nurse";
                                        this._callerController._orderingSession.person_ordering = "nurse";
                                        
                                        this.buttonToggleNurseMode.hide();
                                        this.buttonTogglePatientMode.show();
                                        this.buttonConfirmAndApproveOrder.show();
                                        this.buttonSpecialInstruction.show();
                                        this.buttonBack.show();
                                    } else {
                                        Ext.Msg.alert("", "Incorrect password.");
                                    }
                                },
                                scope: this
                            });
    
    
                            this.passwordfieldPassword.on({
                                keyup: function(comp, evt) {
                                    if(evt.browserEvent.keyCode == 13)
                                    {
                                        evt.stopEvent();
                                        document.activeElement.blur();
    
    
                                        this.buttonAuthenticate.fireEvent('tap');
                                    }
                                },
                                scope: this
                            });
    I am wondering the behaviour is like submit. The strange things is that when I insert some debugging alert the thing works correctly. Can anyone help me with this? Thanks.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    The whole screen goes white or just where the form was?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Posting Permissions

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