on 10-08-2013 6:30 AM
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
Hi Clifford,
Replace left Property with sap.ui.core.TextAlign.Left.
example:- textAlign : sap.ui.core.TextAlign.Left.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am also facing the same issue. Please let me know if you found a solution/workaround for this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.