Page 1 of 1

Sizing

PostPosted: 11 Jul 2016 09:16
by etwoss
Hi

I use this code

Code: Select all
procedure TIWEditOrderItem.ShowDialog(Dlg: TIWCGJQMsgDialog; AMessage: String);
begin

  Dlg.JQDialogOptions.OnClose.OnEvent := DialogClose;
  Dlg.JQDialogOptions.ShowCloseIcon:= False;
  Dlg.JQDialogOptions.Resizable := False;
  Dlg.JQDialogOptions.AutoHeight := True;
  Dlg.JQDialogOptions.AutoWidth := True;
  Dlg.Message := AMessage;

  if (CGIsCallbackProcessing) then
    Dlg.AjaxReRender();


The dialog popups but after half a second the dialog gets a few millimeter smaller.
How come?

Eric

Re: Sizing

PostPosted: 11 Jul 2016 17:49
by Alexander Bulei
Hi Eric,

Try to call the AjaxReRender with BrowserResize:

Code: Select all
AjaxReRender(True,False)


Best Regards.