[CLOSED] [2.2] Ext.MessageBox.show does not size to fit contents if scaled

  1. #1

    [CLOSED] [2.2] Ext.MessageBox.show does not size to fit contents if scaled

    Scaling problem appears in Chrome on the vertical height only on the first render, perhaps related to wrapping. If it fits the first render, then resizing at all scales works. I will have to check firefox and IE.
    Last edited by Daniil; Jun 11, 2013 at 4:26 AM. Reason: [CLOSED]
  2. #2
    Geoffrey McGill
    Founder
  3. #3
    Hi,

    It is, probably, related to this:
    http://forums.ext.net/showthread.php?25150#post110787

    But, indeed, a test case would be good. Maybe, we could do something.
  4. #4
    Sorry. I didn't provide a test case because I could produce the scenario in any case with long text. However, this one gives a good idea.

    				Ext.MessageBox.show({
    					title: 'Test',
    					msg: 'This is a test line trying to expose the potential of zoom to affect what fits. <br/>I need to make sure that certain information that is contained at the bottom of this messagebox will show regardless of zoom.<br/>(Here is an address)<br/><br/>Michael<br/>1234 Address Ln<br/>LA, CA<br/>',
    					buttons: Ext.MessageBox.YESNO,
    					fn: function (btn) {
    						if (btn == 'yes')
    						else {
    						}
    					}
    				});
    Try different zoom factors with Chrome.

    Ultimately my goal is I need to make sure the text will display. I tried height and it didn't work. Can I add layout here? I haven't seen any examples of this so that's really what this question is about. Is it a standard panel?
  5. #5
    Hello!

    As mentioned by @Daniil ExtJS doesn't support scaling. You can add your own styles to make text bigger.
  6. #6
    Quote Originally Posted by michaeld View Post
    Sorry. I didn't provide a test case because I could produce the scenario in any case with long text. However, this one gives a good idea.

                    Ext.MessageBox.show({
                        title: 'Test',
                        msg: 'This is a test line trying to expose the potential of zoom to affect what fits. <br/>I need to make sure that certain information that is contained at the bottom of this messagebox will show regardless of zoom.<br/>(Here is an address)<br/><br/>Michael<br/>1234 Address Ln<br/>LA, CA<br/>',
                        buttons: Ext.MessageBox.YESNO,
                        fn: function (btn) {
                            if (btn == 'yes')
                            else {
                            }
                        }
                    });
    Try different zoom factors with Chrome.
    I tried a few, but cannot reproduce.


    Quote Originally Posted by michaeld View Post
    I tried height and it didn't work. Can I add layout here? I haven't seen any examples of this so that's really what this question is about. Is it a standard panel?
    MessabeBox extends a Window.
    http://docs.sencha.com/extjs/4.2.1/#...dow.MessageBox

Similar Threads

  1. Replies: 7
    Last Post: Sep 16, 2013, 5:19 AM
  2. Replies: 2
    Last Post: Mar 29, 2012, 9:00 PM
  3. Replies: 4
    Last Post: Apr 08, 2010, 8:05 PM
  4. Replies: 0
    Last Post: Dec 10, 2009, 6:54 PM
  5. MessageBox does't show till after method
    By jarremw in forum 1.x Help
    Replies: 3
    Last Post: Jun 23, 2009, 4:08 AM

Posting Permissions