move tabs of a sub tabpanel to the left by default

This takes a bit of screensize, but is fine as long as the browser
horizontal screen size is at least 1280 px ( 92 % of desktop users in 2016
according to StatsCounter)
Still usable for the remaining small displays, but horizontal scrolling
is needed for grids with a lot of columns.

Moving the sub tabs to the top left provides a minor usability
improvement as all controls are now grouped together in the same
screen region.
This commit is contained in:
Emmanuel Kasper 2016-02-29 13:50:08 +01:00 committed by Dietmar Maurer
parent f2782813cd
commit 0a6d4e4cf6

View File

@ -3,6 +3,8 @@ Ext.define('PVE.panel.SubConfig', {
alias: ['widget.pvePanelSubConfig'], alias: ['widget.pvePanelSubConfig'],
configPrefix: undefined, configPrefix: undefined,
tabPosition: 'left',
tabRotation: 0,
getHState: function(itemId) { getHState: function(itemId) {
/*jslint confusion: true */ /*jslint confusion: true */
@ -45,8 +47,6 @@ Ext.define('PVE.panel.SubConfig', {
} }
Ext.apply(me, { Ext.apply(me, {
plain: true,
tabPosition: 'bottom',
listeners: { listeners: {
afterrender: function(tp) { afterrender: function(tp) {
var first = tp.items.get(0); var first = tp.items.get(0);