2017-04-19 56 views
0

我需要在标题后面右对齐标题项目,如下所示:在标题后面插入项目

[title] [item] ============ ===== [< <]

但得到这个:

[标题] =============== ============= [项目] [< <]

我使用ExtJS的4.2.1

Ext.onReady(function() { 
    Ext.create('Ext.panel.Panel', { 
     width: 500, 
     height: 500, 
     collapsible: true, 
     renderTo: Ext.getBody(), 
     header: { 
     titlePosition: 0, 
     title: "title", 
     items: [{ 
      xtype: 'button', 
      text: 'test' 
     }] 
     } 
    }); 
}); 
+0

http://jsfiddle.net/U8MSd/152/ – alxbel

回答

1

你可以将它放在一个类中。 fiddle