fabiotj Posted June 3, 2022 Share Posted June 3, 2022 Please see the attached video. Using the standard UniGui example we can see that the FileUploadButton anchor is having problems when placed inside a UniContainerPanel. Thanks for the good work you've been doing! Attached is also the project used in the video. Fábio. Record_2022_06_03_08_51_17_435.mp4 FileUpload - Button.rar Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 3, 2022 Share Posted June 3, 2022 Hello, Which alignment are you using? Quote Link to comment Share on other sites More sharing options...
fabiotj Posted June 3, 2022 Author Share Posted June 3, 2022 Hi Sherzod, is alNone for both buttons Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 6, 2022 Share Posted June 6, 2022 On 6/3/2022 at 5:57 PM, fabiotj said: the FileUploadButton anchor is having problems when placed inside a UniContainerPanel. Hello, Workaround for now: procedure TMainForm.UniFormCreate(Sender: TObject); begin UniFileUploadButton1.JSInterface.JSAddListener('afterrender', 'function(){var btn=this.button; if (btn) {btn.setStyle({width: "auto", display: "flex", "justify-content": "center"})}}'); end; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.