gpt4 book ai didi

extjs - 水平滚动条到选项卡面板的工具栏

转载 作者:行者123 更新时间:2023-12-01 14:19:49 25 4
gpt4 key购买 nike

我有一个要向其动态添加选项卡的 TabPanel。 When the number of the tabs increase they become very small .我们可以在选项卡面板的工具栏上添加滚动条吗?这是我的标签面板代码:

 var centerPanel = new Ext.TabPanel({
region: 'center',
deferredRender: false,
activeTab: 0,
autoScroll: true,
items: [
<if startUrl != "">
{
title: "${startName}",
html: "<iframe src='${startUrl}' width='100%' height='100%' id='frame_${startName}' frameborder=0 name='name'/>"
}
</if>
]

});

最佳答案

尝试设置新标签的“minTabWidth”属性。默认值为 30(像素)。同时将 TabPanel 的“autoScroll”设置为 true。

关于extjs - 水平滚动条到选项卡面板的工具栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25357753/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com