newsanti Posted March 15 Share Posted March 15 overlap text..with TunimMemo not working. UnimMemo1.JSInterface .JSAddListener('afterrender', 'function(){this.inputEl.setStyle("line-height", this.inputEl.getStyle("font-size"))}'); Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 15 Share Posted March 15 12 minutes ago, newsanti said: procedure TMainmForm.UnimFormCreate(Sender: TObject); begin UnimMemo1.JSInterface.JSConfig('textAlign', ['center']); //'left', 'center', 'right' end; Quote Link to comment Share on other sites More sharing options...
newsanti Posted March 15 Author Share Posted March 15 3 minutes ago, Sherzod said: procedure TMainmForm.UnimFormCreate(Sender: TObject); begin UnimMemo1.JSInterface.JSConfig('textAlign', ['center']); //'left', 'center', 'right' end; Run-Time... var oMemo:= oForm.UnimMemo1; oMemo.Color:= oTask.TagColor1; oMemo.Font.Color:= oTask.TagColor2; oMemo.Font.Size:= 20; oMemo.JSInterface. JSConfig('textAlign', ['center']); //'left', 'center', 'right' Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 15 Share Posted March 15 5 minutes ago, newsanti said: Can you try this? UnimMemo1.JSInterface.JSProperty('textAlign', ['center'], 'setTextAlign'); //'left', 'center', 'right' Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 15 Share Posted March 15 29 minutes ago, newsanti said: overlap text..with TunimMemo not working. This post may help you: Quote Link to comment Share on other sites More sharing options...
newsanti Posted March 15 Author Share Posted March 15 21 minutes ago, Sherzod said: Can you try this? UnimMemo1.JSInterface.JSProperty('textAlign', ['center'], 'setTextAlign'); //'left', 'center', 'right' Working. 1 Quote Link to comment Share on other sites More sharing options...
newsanti Posted March 15 Author Share Posted March 15 19 minutes ago, Sherzod said: This post may help you: constructor TsmswUnimWebSpaceWS666A100BodyItem78Frame101.Create( AOwner: TComponent); begin inherited Create(AOwner); var oMemo:= UnimMemo1; oMemo.JSInterface .JSAddListener('painted', 'function(me){'+ 'me.inputElement.applyStyles('''+oMemo.Font.ToString(True, False, True) +''');'+ 'me.inputElement.setStyle("line-height", me.inputElement.getStyle("font-size"));'+ 'me.inputWrapElement.setStyle("border", "none");'+ '}'); end; This code not working. for overlap. Quote Link to comment Share on other sites More sharing options...
newsanti Posted March 15 Author Share Posted March 15 28 minutes ago, Sherzod said: This post may help you: How to run-time applyStyle of TunimMemo? var oMemo:= oForm.UnimMemo1; oMemo.Color:= oTask.TagColor1; oMemo.Font.Color:= oTask.TagColor2; oMemo.Font.Size:= 20; oMemo.JSInterface .JSProperty('textAlign', ['center'], 'setTextAlign'); //'left', 'center', 'right' >> ??? for ApplyStyle Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 15 Share Posted March 15 Ok. Try simply use this solution for now: CustomCSS -> .x-textareafield textarea { line-height: normal !important; } Quote Link to comment Share on other sites More sharing options...
newsanti Posted March 15 Author Share Posted March 15 1 hour ago, Sherzod said: This post may help you: simple case.. Mobile PostMemo.zip Quote Link to comment Share on other sites More sharing options...
newsanti Posted March 15 Author Share Posted March 15 1 hour ago, Sherzod said: Ok. Try simply use this solution for now: CustomCSS -> .x-textareafield textarea { line-height: normal !important; } Working. Thanks. How to editing vertical center? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted March 15 Share Posted March 15 1 hour ago, newsanti said: How to editing vertical center? This is a textarea, is this advisable, what do you think? Quote Link to comment Share on other sites More sharing options...
newsanti Posted March 15 Author Share Posted March 15 30 minutes ago, Sherzod said: This is a textarea, is this advisable, what do you think? Setting Padding of TunimMemo Example Padding = 50 50 50 50 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.