對於Webix TabView的,我使用類似的配置,以執行以下操作: http://webix.com/snippet/cdb211fd如何爲tabview設置適當的大小?
view: "tabview",
cells: [
{
header: "Tab 2",
body: {
rows: [
{
cols: [
{ view: "button" },
{ view: "button" }
]
},
{
view: "datatable"
}
]
}
}, /* another with the same config, but different number of buttons */
]
最初,所有是OK,但是如果用戶切換到另一個選項卡,它會擠壓到按鈕的寬度,而我預計tabview將適合屏幕。有沒有解決方法或我做錯了什麼?