x11 Posted January 18, 2021 Share Posted January 18, 2021 Подскажите, пожалуйста, нет ли у страничек компоненты UnimTabPanel автоматической прокрутки? Может есть какой-то скрытый способ с помощью свойств extJS или с помощью CSS добавить вертикальную прокрутку? Спасибо. Quote Link to comment Share on other sites More sharing options...
x11 Posted December 15, 2021 Author Share Posted December 15, 2021 проблема все еще актуальна @Sherzod Quote Link to comment Share on other sites More sharing options...
x11 Posted December 15, 2021 Author Share Posted December 15, 2021 Еще проблема в том, что до выбранной вкладки автоматически не прокручивается. На картинке нет выбранной вкладки, т.к.она справа за пределами экрана. На второй картинке - это design-time и вкладка "Log-файли". Quote Link to comment Share on other sites More sharing options...
stas Posted December 15, 2021 Share Posted December 15, 2021 https://examples.sencha.com/extjs/6.5.1/examples/kitchensink/?modern#overflow-tabs 1 Quote Link to comment Share on other sites More sharing options...
x11 Posted December 15, 2021 Author Share Posted December 15, 2021 извини, не понял Quote Link to comment Share on other sites More sharing options...
stas Posted December 15, 2021 Share Posted December 15, 2021 Пример прокрутки Quote Link to comment Share on other sites More sharing options...
x11 Posted December 15, 2021 Author Share Posted December 15, 2021 и что куда применить? Quote Link to comment Share on other sites More sharing options...
stas Posted December 15, 2021 Share Posted December 15, 2021 UniGui основано на extjs, вот Вам пример. Это возможно, экспериментируйте. Quote Link to comment Share on other sites More sharing options...
x11 Posted December 15, 2021 Author Share Posted December 15, 2021 да уж... "помогли" Quote Link to comment Share on other sites More sharing options...
x11 Posted December 15, 2021 Author Share Posted December 15, 2021 что-то нашел, а что-то нет function beforeInit(sender, config) { config.tabBar = { layout: { overflow: 'scroller'// автоматическая прокрутка до активной вкладки }, scrollable: true// возможность прокручивать влева-вправо }; } Я не могу понять, что нужно сделать, чтобы появились кнопки, как на картинке Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 16, 2021 Share Posted December 16, 2021 9 hours ago, x11 said: Я не могу понять, что нужно сделать, чтобы появились кнопки, как на картинке Добрый день, Попробуйте: function beforeInit(sender, config) { config.tabBar = { layout: { type: 'hbox', pack: 'start', overflow: Ext.layout.overflow.Scroller({ arrows: true }) } }; } 1 Quote Link to comment Share on other sites More sharing options...
x11 Posted December 16, 2021 Author Share Posted December 16, 2021 Спасибо. 👍 function beforeInit(sender, config) { config.tabBar = { layout: { pack: 'start', type: 'hbox', overflow: 'scroller', overflow: Ext.layout.overflow.Scroller({ arrows: true }) }, scrollable: true }; // config.tabBarPosition='bottom'; } 1 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.