on 05-25-2017 10:43 AM
Hello All,
Label is too high. I need to allign properly for the ComboBox. and ComboBox is also too away from Label (As mentioned in ScreenShot). Please help me Fix it.
Please find Attached code.
<mvc:View controllerName="Sapui5_cBox_label_allignment.controller.View1" xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:mvc="sap.ui.core.mvc" displayBlock="true" xmlns="sap.m" xmlns:l="sap.ui.layout">
<App>
<pages>
<Page title="{i18n>title}">
<content>
<l:Grid defaultSpan="L3 M4 S6" class="sapUiSmallMarginTop">
<l:content>
<Label text="Combo" textAlign="Right"></Label>
<ComboBox >
</ComboBox>
</l:content>
</l:Grid>
</content>
</Page>
</pages>
</App>
</mvc:View>
Thanks and regards,
Urvish
Can you just use simple forms instead. In that alignment is handled
https://sapui5.hana.ondemand.com/explored.html#/entity/sap.ui.layout.form.SimpleForm/samples
thanks
Viplove
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you use Controls in HBox than you need to provide the margins .. so use predefined SAP margin classes .. like sapUiTinyMarginTop as mention in the link below
https://sapui5.hana.ondemand.com/#docs/guide/777168ffe8324873973151dae2356d1c.html
thanks
Viplove
Hey,
It solved the Issue.
Thanks,
Urvish
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.