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?

1658260197924.png

Example project is attached
 

Attachments

  • TextArea Padding.zip
    3.3 KB · Views: 92

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


Ref:
 
Upvote 0
Top