Jump to content

TUniFileUploadButton - Anchors with problem


fabiotj

Recommended Posts

 

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.

FileUpload - Button.rar

Link to comment
Share on other sites

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;

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...