Skip to Content

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 02, 2015 at 10:45 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 02, 2015 at 10:35 AM

    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

    Add comment
    10|10000 characters needed characters exceeded