EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: varonica on December 28, 2012, 03:31:24 AM



Title: limit width/height of $.messager.alert
Post by: varonica on December 28, 2012, 03:31:24 AM
Hi sir, how can i limit of width/height of $.messager.alert ??
Parameter:
  • title
  • msg
  • icon
  • fn


Title: Re: limit width/height of $.messager.alert
Post by: patana on December 29, 2012, 05:48:44 AM
If im not mistaken the below code might help you:
Code:
$.messager.alert('Warning','The warning message').window({  
    width:300, 
    height:300
}); 


Title: Re: limit width/height of $.messager.alert
Post by: varonica on January 01, 2013, 12:59:30 AM
Thanks!!!  :D :D :D ;D ;D


Title: Re: limit width/height of $.messager.alert
Post by: sdyson31 on May 28, 2015, 10:12:58 AM
Okay button is not shown any more.


Title: Re: limit width/height of $.messager.alert
Post by: stworthy on May 28, 2015, 06:28:55 PM
If you are using the easyui 1.4.2, please try this code instead.
Code:
$.messager.alert({
title: 'Warning',
msg: '<div style="height:100px">The warning message</div>',
icon: 'info',
width: 300
})