B4J Question Text Area padding not working

Alexander Stolte

Expert
Licensed User
Longtime User
This code does not work:
B4X:
CSSUtils.SetStyleProperty(TextArea1, "-fx-padding", "0 0 0 0")
How can i set the padding to 0 on the TextArea?


Example project is attached
 

Attachments

  • TextArea Padding.zip
    3.3 KB · Views: 219

TILogistic

Expert
Licensed User
Longtime User
TEST
B4X:
    Dim MyCss As String = $"-fx-border-width: 0; -fx-border-insets: 0; -fx-border-color: transparent; -fx-background-insets: 0;"$
    TextArea1.Style = MyCss


Ref:
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…