Jump to content

Recommended Posts

Posted

Hi,

I use a UniContainerPanel with the fit layout. The components placed on it are arranged correctly, with the exception of the checkbox.

image.png.91201918dbb8754c714c52361ba8a9d7.png 

Does anybody have a solution for that problem?

Best regards

Posted
11 hours ago, bbm said:

Does anybody have a solution for that problem?

Hello,

You assign a value to the FieldLabel property to other components, and for UniCheckBox you do not assign.

Two options:
1. You must assign FieldLabel
2. Or use these configs:

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  with UniCheckBox1 do
  begin
    JSInterface.JSConfig('fieldLabel', [' ']);
    JSInterface.JSConfig('labelAlign', ['top']);
    JSInterface.JSConfig('labelSeparator', ['']);
  end;
end;

 

  • 3 weeks later...
Posted

Hi,

I have the same problem with the UniButton now, but it seems not to be the same solution

image.png.ac6051b29a029066e9e2fdbfad5de04e.png

Is there anybody who has a solution?

Thank you in advance

Best regards

Posted
10 minutes ago, bbm said:

I have the same problem with the UniButton now, but it seems not to be the same solution

Hi,

Well, you can try to use UniButton.LayoutConfig.Margin.

For example:

UniButton1.LayoutConfig.Margin = 22px 0 0 5px

 

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...