X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/7a654f8d43fdb43d78b63d90528bed6e86b608cc..refs/heads/master:/examples/toolbar/vertical-toolbars.js diff --git a/examples/toolbar/vertical-toolbars.js b/examples/toolbar/vertical-toolbars.js index f8711e60..25243193 100644 --- a/examples/toolbar/vertical-toolbars.js +++ b/examples/toolbar/vertical-toolbars.js @@ -1,3 +1,17 @@ +/* + +This file is part of Ext JS 4 + +Copyright (c) 2011 Sencha Inc + +Contact: http://www.sencha.com/contact + +GNU General Public License Usage +This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html. + +If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact. + +*/ Ext.require([ 'Ext.panel.*', 'Ext.toolbar.*', @@ -12,6 +26,9 @@ Ext.onReady(function() { Ext.QuickTips.init(); + // The default dockedItem weights have TLRB order, but TBLR matches border layout: + Ext.panel.AbstractPanel.prototype.defaultDockWeights = { top: 1, bottom: 3, left: 5, right: 7 }; + var SamplePanel = Ext.extend(Ext.Panel, { width : 500, height : 250, @@ -78,19 +95,23 @@ Ext.onReady(function() { { xtype:'splitbutton', text: 'Cut', + textAlign: 'left', iconCls: 'add16', menu: [{text: 'Cut Menu Item'}] },{ text: 'Copy', + textAlign: 'left', iconCls: 'add16' },{ text: 'Paste', + textAlign: 'left', iconCls: 'add16', menu: [{text: 'Paste Menu Item'}] }, //'-', { text: 'Format', + textAlign: 'left', iconCls: 'add16' } ] @@ -102,21 +123,26 @@ Ext.onReady(function() { xtype:'splitbutton', text: 'Menu Button', iconCls: 'add16', + textAlign: 'left', menu: [{text: 'Menu Button 1'}] },'-',{ xtype:'splitbutton', text: 'Cut Selection', iconCls: 'add16', + textAlign: 'left', menu: [{text: 'Cut Menu Item'}] },{ text: 'Copy Selection', + textAlign: 'left', iconCls: 'add16' },{ text: 'Paste', iconCls: 'add16', + textAlign: 'left', menu: [{text: 'Paste Menu Item'}] },'-',{ text: 'Format', + textAlign: 'left', iconCls: 'add16' } ] @@ -208,3 +234,4 @@ Ext.onReady(function() { ] }); }); +