IWCGCreateMessageDialog Auto...

HI
using this code:
I expected that the dialogs height and width are big enough to Show the long message, but its not , its still standard size
Am i missing some property?
Eric
using this code:
- Code: Select all
procedure TIWForm8.IWCGJQButton1JQButtonOptionsClick(Sender: TObject;
AParams: TStringList);
var
Dlg : TIWCGJQMsgDialog;
LMessage: String;
begin
LMessage := 'Are you sure you want to cancel request for product ''xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ss ss'' ?';
Dlg := IWCGCreateMessageDialog('', mtConfirmation, [mbYes,mbNo],
procedure(Dialog: TIWCGJQMsgDialog; AResult: TModalResult)
begin
if AResult = mrYes then
begin
end;
end);
Dlg.Message := LMessage;
Dlg.JQDialogOptions.AutoHeight := True;
Dlg.JQDialogOptions.AutoWidth := True;
Dlg.JQDialogOptions.Closable := False;
Dlg.JQDialogOptions.Resizable := False;
Dlg.JQDialogOptions.OnClose.OnEvent := DialogClose;
Dlg.AjaxReRender();
I expected that the dialogs height and width are big enough to Show the long message, but its not , its still standard size
Am i missing some property?
Eric