B4J Question [B4XTable] Set Horizontal Scrollbar Size

Solution
CSS:
 .scroll-bar .increment-arrow,
 .scroll-bar .decrement-arrow{
    -fx-shape : " ";   
    -fx-padding :0.3em 0.0;
}

 .scroll-bar:vertical .increment-arrow,
 .scroll-bar:vertical .decrement-arrow{
    -fx-shape : " ";   
    -fx-padding :0.0 0.3em;
}

TILogistic

Expert
Licensed User
Longtime User
CSS:
 .scroll-bar .increment-arrow,
 .scroll-bar .decrement-arrow{
    -fx-shape : " ";   
    -fx-padding :0.3em 0.0;
}

 .scroll-bar:vertical .increment-arrow,
 .scroll-bar:vertical .decrement-arrow{
    -fx-shape : " ";   
    -fx-padding :0.0 0.3em;
}

 
Upvote 0
Solution

TILogistic

Expert
Licensed User
Longtime User
see css:
EDIT
CSS:
 .scroll-bar .increment-arrow,
 .scroll-bar .decrement-arrow{
    /* -fx-shape : " ";     */
    -fx-padding :0.8em 0.4em;
}

 .scroll-bar:vertical .increment-arrow,
 .scroll-bar:vertical .decrement-arrow{
    /* -fx-shape : " ";     */
    -fx-padding :0.4em 0.8em;
}
 

Attachments

  • B4XTableHorizontalScrollbarHeight2.zip
    4.3 KB · Views: 200
Last edited:
Upvote 0

aeric

Expert
Licensed User
Longtime User
To load the stylesheet on page other than MainPage, use the following:
B4X:
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("SecondPage")
    B4XPages.GetNativeParent(Me).Stylesheets.Add(File.GetUri(File.DirAssets, "Style.css"))
    CreateColumns
    CreatePanels
End Sub
 
Upvote 0

TILogistic

Expert
Licensed User
Longtime User
tips:
sorry spanish
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…