Jump to content

Alignment of a UniCheckBox


bbm

Recommended Posts

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

Link to comment
Share on other sites

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;

 

Link to comment
Share on other sites

  • 3 weeks later...
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

 

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