andyhill Posted July 9, 2023 Share Posted July 9, 2023 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; Quote Link to comment Share on other sites More sharing options...
andyhill Posted July 9, 2023 Author Share Posted July 9, 2023 On 3/7/2023 at 10:42 AM, warobert said: Also with the same problem, did you manage to solve it? NO, not yet Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 9, 2023 Share Posted July 9, 2023 Hello @andyhill @warobert This post may help you: Quote Link to comment Share on other sites More sharing options...
andyhill Posted July 9, 2023 Author Share Posted July 9, 2023 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); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.