text-align: 1 acts like font-rtl: 1

Forums Desktop Info text-align: 1 acts like font-rtl: 1

Viewing 2 reply threads
  • Author
    Posts
    • #2403 Reply
      AvatarDee Abson

      When I use text-align: 1 to right align text, instead of a pure right alignment the text is placed as if font-rtl: 1 was specified. I’m using DesktopInfo 2.1.0.

      Example code:

      [options]
      font-rtl: 0
      text-align: 1
      
      [items]
      COMMENT=active:1,text-align:1,text:(555) 867-5309
      COMMENT=active:1,text-align:1,text:555.867.5309.
      COMMENT=active:1,text-align:1,text:555|867|5309|

      Results (right aligned):

      867-5309 (555)
      .555.867.5309
      |5309|867|555

      Expected results (right aligned):

      (555) 867-5309
      555.867.5309.
      555|867|5309|
      1+
      Glenn
    • #2404 Reply
      AvatarDee Abson

      Correction on the example config. I transcribed it incorrectly from my test system. Config is actually as below, and results are as described above. And thanks for your continued support and development of this useful tool!

      [options]
      font-rtl=0
      text-align=1
      
      [items]
      COMMENT=active:1,text-align:1,text:(555) 867-5309
      COMMENT=active:1,text-align:1,text:555.867.5309.
      COMMENT=active:1,text-align:1,text:555|867|5309|
      1+
      Glenn
    • #2406 Reply
      GlennGlenn
      Keymaster

      Yes I can see the confused code. I’ll raise an issue and get this fixed. Thanks for the bug report.

      1+
Viewing 2 reply threads
Reply To: text-align: 1 acts like font-rtl: 1
Your information:




Do NOT follow this link or you will be banned from the site!