As a temporary fix I am putting a TAB before the text when I create my label, which make everything look right
Not exactly the same as with java 8 (tab indents a little more), but something I can live with until there is a fix.
B4X:
Private Sub CreateTextLabel(TextToShow As String, SetColor As Boolean) As Label
Dim MakeLabel As Label
MakeLabel.Initialize("")
MakeLabel.Font = fx.DefaultFont(18)
#if _Fixed_
MakeLabel.Text = TextToShow
#else
MakeLabel.Text = TAB &TextToShow
#end if
If SetColor Then
MakeLabel.TextColor = fx.Colors.Blue
End If
Return MakeLabel
End Sub
Looks like you need to set the padding yourself with Java 11+. This is simple:
B4X:
Sub AppStart (Form1 As Form, Args() As String)
MainForm = Form1
MainForm.RootPane.LoadLayout("Layout1")
MainForm.Show
For i = 1 To 10
Dim t As TreeTableItem
Dim lbl As Label
lbl.Initialize("")
lbl.Text = i
CSSUtils.SetStyleProperty(lbl, "-fx-padding", "0 0 0 20") '<-------
t.Initialize("", Array(lbl))
Dim t2 As TreeTableItem
t2.Initialize("", Array(i))
t.Children.Add(t2)
TreeTableView1.Root.Children.Add(t)
Next
End Sub