EasyUI Forum
May 03, 2024, 11:01:46 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: datagrid width overflow  (Read 5314 times)
fengdie
Jr. Member
**
Posts: 87


View Profile Email
« on: August 23, 2018, 02:23:26 AM »

Then appLayout layout, which uses the datagrid component. The datagrid width will overflow. for details, see attached
再appLayout布局,里面使用datagrid组件。datagrid宽度会溢出。详情见附件.
« Last Edit: August 23, 2018, 02:44:07 AM by fengdie » Logged
jarry
Administrator
Hero Member
*****
Posts: 2262


View Profile Email
« Reply #1 on: August 23, 2018, 05:29:26 AM »

Please add 'overflow:hidden' style to the 'main-body'.

Code:
<div class="main-body f-full f-column" [b]style="overflow:hidden;"[/b]>
    <Tabs class="f-full">
      <TabPanel title="DataGrid" bodyCls="f-column">
        <DataGrid class="f-full" :data="data">
          <GridColumn field="itemid" title="Item ID"></GridColumn>
          <GridColumn field="name" title="Name"></GridColumn>
          <GridColumn field="listprice" title="List Price" align="right"></GridColumn>
          <GridColumn field="unitcost" title="Unit Cost" align="right"></GridColumn>
          <GridColumn field="attr" title="Attribute" width="30%"></GridColumn>
          <GridColumn field="status" title="Status" align="center"></GridColumn>
        </DataGrid>
      </TabPanel>
    </Tabs>
</div>
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!