[1.1.1] Incorrect width calculation for messagebox

  • When I have "

    " tag inside the message string, the width of the MessageBox is not calculated correctly.
    For example,

    var str = "

    If a use you wish to make of another's work is not within the appropriate Rule of Thumb, it may still be a fair use and can be analyzed using the Four Factor Fair Use Test.

    This is the second paragraph!

    ";

    Ext.MessageBox.alert("TEST ONLY", str);


    I think that it would be nice if the MessageBox body text could support multiple paragraphs. After looking into the source code, I realized that in the function call of "updateText", msgEl.offsetWidth was not calculated correctly when a "

    " is contained in the message text (it should be related to the fact that msgEl is a span). Changing it to "div" will fix the problem.

    Suggested fixes:

    getDialog : function(){
    if(!dlg){
    ........
    ........
    bodyEl = dlg.body.createChild({
    html:' class="ext-mb-text">



  • When I have "

    " tag inside the message string, the width of the MessageBox is not calculated correctly.
    For example,

    var str = "

    If a use you wish to make of another's work is not within the appropriate Rule of Thumb, it may still be a fair use and can be analyzed using the Four Factor Fair Use Test.

    This is the second paragraph!

    ";

    Ext.MessageBox.alert("TEST ONLY", str);


    I think that it would be nice if the MessageBox body text could support multiple paragraphs. After looking into the source code, I realized that in the function call of "updateText", msgEl.offsetWidth was not calculated correctly when a "

    " is contained in the message text (it should be related to the fact that msgEl is a span). Changing it to "div" will fix the problem.

    Suggested fixes:

    getDialog : function(){
    if(!dlg){
    ........
    ........
    bodyEl = dlg.body.createChild({
    html:' class="ext-mb-text">








  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about [1.1.1] Incorrect width calculation for messagebox , Please add it free.