Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Alignment issue for label and combobox

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.

replied

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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question