facebook

Workaround for number justify-right?

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #319242 Reply

    WiZaxx
    Participant

    This is cosmetics but it drive me nuts…

    In my app there are a great deal of numbers and I can’t get to justify to the right; now with all the labels and numbers on the screen is quite messy when they all justify to the left.

    Also, I can’t find a way to get the decimals fixed.

    Questions:
    Is there a workaround to justify the numbers correctly to the right?
    How do I go to fix the numbers to 2 decimal points?

    As always THANK YOU

    #319249 Reply

    support-michael
    Keymaster

    @WiZaxx

    One approach is to use the designer to layout Text component with alignment=right. The following screenshot illustrates 2 layouts of text components using different fonts and padding. At this time there are no format patterns for text formatting and alignment.

    See attachment text-alignment-right.png

    Attachments:
    You must be logged in to view attached files.
    #319256 Reply

    WiZaxx
    Participant

    I got that, thank you.

    Problem is that all I have are input TextFields and your magic is not working with those.
    Any pointer?

    #319259 Reply

    support-michael
    Keymaster

    @WiZaxx

    I am helping test some features completed for next release. One of the improvements is right alignment of input-field and text-area widgets. We are evaluating if we provide an early access version of this next release.

    #319262 Reply

    WiZaxx
    Participant

    That’s great news, thank you.

    If I may, I would recommend to expand on the TextField-Type-number to default to right-alignment and include a default two-decimals.
    That will make my day! 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Workaround for number justify-right?

You must be logged in to post in the forum log in