Results 1 to 10 of 10

Thread: message box width

  1. #1

    Default message box width

    has anyone experienced the message box width being too small after some time? its width does not seem to be correct sometimes
    Attached Images Attached Images

  2. #2
    Sencha User axelaxel's Avatar
    Join Date
    Sep 2008
    Location
    Italy
    Posts
    86

    Default

    can you be clearer?
    or post some code?
    to understand exactly the problem
    what do you mean after some time?

  3. #3
    Sencha User axelaxel's Avatar
    Join Date
    Sep 2008
    Location
    Italy
    Posts
    86

    Default

    ah ok the photos, i didn't have before in the post..

  4. #4

    Default

    the most common time it happens is after we hit the data save button, the data save button just saves data changes on a grid using ajax request...

  5. #5

    Default

    this is the listener event for the button click (the button which when after clicked, and successfully does the ajax request will make the message box show in a weird manner

    Code:
    listeners: { 'click': { fn: function() {
                    var btn = Ext.getCmp('fw-btn-' + data.id);
                    var qAns = GetQuestionAnswer(btn);
                    if (qAns == null) {
                        Ext.Msg.alert('Cannot Save', 'Question must be answered first.');
                        return false;
                    }
                    showWindowMask('', 'Loading...');
                    form.getForm().submit({
                        url: 'Questions.aspx',
                        success: function(form, action) {
    
                            var store = Ext.getCmp('pnl-fw-' + thisId).store;
                            var record = store.getAt(rowIndex);
                            var field1 = false;
                            var field2 = 2;
                            field1 = form.findField('fw-ans-na-' + data.id).getValue();
                            if (!field1)
                                field1 = form.findField('fw-ans-t-' + data.id).getValue();
                            if (!field1)
                                field1 = form.findField('fw-ans-f-' + data.id).getValue();
                            if (!field1)
                                field1 = form.findField('fw-ans-fi-' + data.id).getValue();
    
                            field2 = form.findField('fw-pri-' + data.id).getValue().toString();
    
                            store.suspendEvents();
                            record.set('a', field1);
                            record.set('p', field2);
                            var ctr1;
                            for (ctr1 = 0; ctr1 < store.getCount(); ctr1++) {
                                if (ctr1 == rowIndex)
                                    continue;
                                if (store.getAt(ctr1).get("id") == record.data["id"]) {
                                    expander.collapseRow(ctr1);
                                    store.getAt(ctr1).set("a", field1);
                                    store.getAt(ctr1).set("p", field2);
                                }
                            }
                            store.resumeEvents();
                            store.commitChanges();
                            expander.expandRow(rowIndex);
                            hideWindowMask('');
                            Ext.Msg.alert('Success!', 'Data Saved!');
                        },
                        failure: function(form, action) {
                            hideWindowMask('');
                            HRCA_ShowError('Save failed!', action.response.status);
                        }
                    });
                }, scope: this, stopEvent: true

  6. #6

    Default

    This happens to me when i use the Ext.Msg.progress() function in between Ext.Msg.alert() or Ext.Msg.show(). I think since Ext.Msg is a singleton the width get messed up ...

    Could this be the cause?

    Michael

  7. #7

    Default

    this happens for me when i use the message box inside a form submit callback function

  8. #8

    Default

    i have this dummy message box message on the form submit success function

    Code:
    Ext.Msg.alert('Success!', 'Data asfasjaskdja asdfiasdai sa sidjais asidjais as iasjdias a sidja s Saved!');
    Attached Images Attached Images
    Last edited by wp.joju; 24 Nov 2009 at 3:08 AM. Reason: added attachment

  9. #9

    Default

    I have noticed simular behaviour.
    We also use the Ext.msg.alert inside a form submit success/failure method

  10. #10

    Default

    fixed on v3.0.3, at least on firefox and for my part... haven't tested on IE yet

Posting Permissions

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