Reputation: 793
Ext.MessageBox.show({
title: '',
msg: '',
height:300,
width:500,
maxWidth:1000,
maxHeight:1000,
minWidth:500,
buttons: Ext.MessageBox.OKCANCEL,
multiline: true,
fn: showResultText,
value: something
});
function showResultText(btn, text){
if(btn=='ok'){
$.post(url, {clientcomment:text, orderid:orderid}, function(data){
$('div#something').html(data);
});
}
};
Now say if someone were to enter a very long string with no returns, what returns is a very long string horizontally, it will not stay in the div I put it :( I dont really know how to fix, I dont want an overflow bar horizontally I would like it to move down a line when it reaches the end of the div.
Upvotes: 0
Views: 5046
Reputation: 10948
How is you div styled? If it has a specified width and white-space: normal
, the text should wrap.
Upvotes: 2