I am trying to align text in a label on a form. The textAlign property has values such as Left, Center and Right. However if my form has a gridLayout my labels ignore the textAlign property and align right. If my form has a ResponsiveLayout the lebels align left. I bleieve my syntax for the textAlign property is correct because when get errors if I make a typo but no errors when I type correctly. Can someone please advise?
The code I am using is
label: new sap.ui.commons.Label({text: "Name", textAlign : "left", layoutData: new sap.ui.commons.form.GridElementData({ hCells: "2"})}),
Thanks
Cliff