Quantcast
Channel: SCN : Discussion List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 5653

SAPUI5 Label Text alignment

$
0
0

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


Viewing all articles
Browse latest Browse all 5653

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>