Jump to content

Wrap TreeView Node text


skafy

Recommended Posts

Hi,

 

For now, try:

 

Although, maybe it's not the optimal solution, there are certain moments, such as the width and line, still need to analyze...

 

post-906-0-86111300-1452020306_thumb.png

procedure TMainForm.UniFormCreate(Sender: TObject);
begin

  UniSession.SetStyle(
    '#' + UniTreeView1.JSName + '_id .x-tree-node-text{'+
    '  display: inline-block;'+
    '  padding-left: 1em;'+
    '  white-space: normal;'+
    '  width: '+ IntToStr(UniTreeView1.Width - 60) +'px;'+
    '}'
  );

end;

Best regards.

  • Upvote 1
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...