我制作了一个简单的表单,其中包含一个输入字段和两个按钮,定义如下:
<core:FragmentDefinition
xmlns="sap.m"
xmlns:l="sap.ui.layout"
xmlns:f="sap.ui.layout.form"
controllerName="com.techmo.controller.Table"
xmlns:core="sap.ui.core">
<Page
class="employePageBackGroundColor"
showHeader="false">
<f:SimpleForm
id="EmployeeSimpleForm"
editable="true"
layout="ResponsiveGridLayout"
labelSpanL="4"
labelSpanM="4"
labelSpanS="6"
adjustLabelSpan="True"
emptySpanL="0"
emptySpanM="0"
emptySpanS="6"
columnsL="1"
columnsM="1"
singleContainerFullSize="false" >
<f:content>
<Label text="Employee Name" reqiured="true">
<layoutData>
<l:GridData span="L2 M3 S6"/>
</layoutData>
</Label>
<Input id="empname">
<layoutData>
<l:GridData span="L2 M3 S6"/>
</layoutData>
</Input>
如果我在这里添加按钮,它在移动视图中没有响应按钮被截断并进入下一行。我是ui5的新手,任何人都可以帮助我解决这个问题提前谢谢
<Button class="search" type="Emphasized" text="Search" press="onSearch" icon="sap-icon://search">
<layoutData>
<l:GridData span="L2 M2 S2"/>
</layoutData>
</Button>
<Button class="userAddButton" text="ADD" press="onAddCustomer" icon="sap-icon://add-employee">
<layoutData>
<l:GridData span="L5 M2 S12"/>
</layoutData>
</Button>
</f:content>
</f:SimpleForm>


