CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Sizing

by etwoss » 11 Jul 2016 09:16

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
etwoss
 
Posts: 1205
Joined: 06 Feb 2014 08:58

by Alexander Bulei » 11 Jul 2016 17:49

Hi Eric,

Try to call the AjaxReRender with BrowserResize:

Code: Select all
AjaxReRender(True,False)


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal


Return to IWCGJQMessageDlg

cron

Who is online

Users browsing this forum: No registered users and 1 guest

Contact Us.