Jump to content

UnimMemo Text Line Spacing - How to set ?


andyhill

Recommended Posts

Please advise how to set UnimMemo Line Spacing in code - thanks in advance.

I tried this but has no effect ?

  DisplayMemo.ClientEvents.ExtEvents.Clear;
  MyScript:= 'afterrender=function afterrender(sender, eOpts) '+
             '{ '+
             '  sender.inputEl.setStyle(''line-height'', ''26px''); '+
             '} ';
  DisplayMemo.ClientEvents.ExtEvents.Add(MyScript);
 

//margin-bottom: 1em;
//line-height: 1.25;
 

Link to comment
Share on other sites

Thanks Sherzod, my implementation below does the job as me.getStyle('font-size') is the UniGUI default and I need breathing room around the text.

  MyScript:= 'painted=function painted(sender, eOpts) '+
             '{ '+
             '  var me = sender.inputElement; '+
             '  me.setStyle(''line-height'', ''1.25''); '+ 
             '} ';
  DisplayMemo.ClientEvents.ExtEvents.Add(MyScript);
 

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