This is the test code:
Ext.define('App.TabsWin', { extend: 'Ext.Window', width: 600, height: 400, layout: 'fit', autoShow: true, viewModel: true, initComponent: function() { Ext.apply(this, { width: 740, items: [{ xtype: 'tabpanel', reference: 'tabpanel', border: false, defaults: { bodyPadding: 10, autoScroll: true, closable: true, border: false }, tabPosition: 'left', tabRotation: 0, items: [{ title: 'Tab 1', icon: null, glyph: 42, html: 'long text' }, { title: 'Tab 2', icon: null, glyph: 70, html: 'extra long text' }, { title: 'Tab 3', icon: null, glyph: 86, html: 'long text' }] }] }); this.callParent(); } }); Ext.create('App.TabsWin');
If you run the code in browser's console it works as expected but if you run that code tabs are on left side but not horizontally aligned.
Can anyone explain what's happening or how to fix it?