1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    30
    Vote Rating
    0
    Greeens is on a distinguished road

      0  

    Default MessageBox minimum width

    MessageBox minimum width


    Hi,

    I'm using the messageBox but seems like there's a minimum width set for the messsage box that I cannot set the width under a certain amount of size


    function createMessage(item, e) {
    Ext.MessageBox.show({
    title: 'New Entity',
    msg: 'Entity Name:',
    width:30,
    buttons: Ext.MessageBox.OKCANCEL,
    prompt: true,
    multiline: false,
    fn: showResultText
    });

    I can't set the width to 30.

    Another quesiton:

    How would I change the icon image of a tree?

    If anyone can answer any of my question would be great!!

    Thanks for all of your help!

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    3
    tryanDLS is on a distinguished road

      0  

    Default


    1. I don't think you can make the width that small b/c the object calculates width based on the size of what's being displayed (maybe min of config.width and actual width). Since you have 2 buttons that are 75px each plus spacing, you're never gonna get a box that small. Even if you could, what would be the point?

    2. There are numerous threads regarding how to change what the tree renders.

Thread Participants: 1