alfr Posted December 17, 2021 Share Posted December 17, 2021 Hi, I've tried to do a Touch form similair to below. It will be used in different scenarios as a pop-up form showing different messages etc, so need the height to be dynamic based on different text length. So if the form could be based on "auto" it should be correct. But doesn't matter what I do, the height of the form doesn't change. Also not possible to change/set the height manually after the form is created? Is there a way to handle this. Currently i'm using client alignmentControl. Another problem is that the HideAnimation doesn't work (set to for example slideOut). As you can see the ShowAnimation do work as it should. Also attached test case - if needed. MobileFormHeightHideAnimation.zip unigui professional 1.90.0.1537 Link to comment Share on other sites More sharing options...
Sherzod Posted December 18, 2021 Share Posted December 18, 2021 10 hours ago, alfr said: Another problem is that the HideAnimation doesn't work (set to for example slideOut). As you can see the ShowAnimation do work as it should. Hi, I'm not sure if this is the correct behavior or not, although we are destroying the form and not hiding the form. You can use this trick. In your case: 1. frmPopup.UnimButton1.ModalResult = mrNone 2. procedure TfrmPopup.UnimButton1Click(Sender: TObject); begin Self.WebForm.JSInterface.JSCall('hide', []); end; 3. frmPopup.ClientEvents.ExtEvents -> function window.hide(sender, eOpts) { ajaxRequest(sender, '_hide', []); } 4. frmPopup.OnAjaxEvent -> procedure TfrmPopup.UnimFormAjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = '_hide' then Close end; Link to comment Share on other sites More sharing options...
Recommended Posts