View Full Version : MessageBox minimum width

24 Apr 2007, 6:29 AM

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) {
title: 'New Entity',
msg: 'Entity Name:',
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!

24 Apr 2007, 8:25 AM
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.