ListView.Label.Gravity problem

klaus

Expert
Licensed User
Longtime User
Hi Erel,
When answering a question in the German forum, I found a small 'bug'.
When setting LisView1.SingleLineLayout.Label.Gravity ) Gravity.RIGHT the content is not fully displayed, moved too much to the rigth.
Checking the Label parameter, I found Left = 5 and Width = -1 (fill the width of the parent view)
To have the text displayed completely the Left parameter must be set to 0, lower ListView in the picture.

As the default Left parameter is >0, then shouldnt the default width parameter be ListView1.Width - LisView1.SingleLineLayout.Label.Left?

Attached a test program.

Best regards.
 

Attachments

  • ListViewLabelGravity1.zip
    5.6 KB · Views: 253
  • ListViewLabelGravity1.jpg
    ListViewLabelGravity1.jpg
    18 KB · Views: 500
Top