cancel
Showing results for 
Search instead for 
Did you mean: 

Alignment issue for label and combobox

amber_garg
Active Participant
0 Kudos

Hi All,

I have a multiselect combobox from sap.m library. I have a label besides the combobox which is not coming in the same alignment(verticially) as the combobox. I am using Horizontal Layout here since I want all elements to be displayed rowwise. Please find the attached screenshot to see the problem faced.

Accepted Solutions (1)

Accepted Solutions (1)

saivellanki
Active Contributor
0 Kudos

Hi Amber,

You got to use custom style class for your labels using .addStyleClass method.

Check the sample here: JS Bin - Collaborative JavaScript Debugging

Add it your label like this: sap.m.Label().addStyleClass("comboLabel"), if you are using JS view.

Regards,

Sai Vellanki.

Answers (1)

Answers (1)

amber_garg
Active Participant
0 Kudos

I know the solution is there on net css - Vertical label alignment in SAPUI5 (Label too high) - Stack Overflow  but in this , formLayout has been used , but I wanted with Horizontal Layout

Regards

Amber