1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Bug? Label text not centered after CRLF

Discussion in 'B4J Bugs & Wishlist' started by ElliotHC, Jun 3, 2019.

  1. ElliotHC

    ElliotHC Active Member Licensed User

    Maybe I have this set wrong but I think there may be a bug in that when you create a label and set it to Center align the text, if you set it like this label.text = "Example" & CRLF & <variable> the variable is left aligned. I need it to be centered under the text.
  2. Erel

    Erel Administrator Staff Member Licensed User

    This is how the underlying JavaFX engine handles multiline text. You can use the new BCTextEngine library instead.
    Peter Simpson and ElliotHC like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice