我有以下情况。我有一个Ext.form.field.File
(buttonOnly: true
在Ext.form.Panel
之上,它位于工具栏的顶部,位于Ext.grid.Panel
的一个工具栏上,结果是,该按钮的风格与工具栏完全不同,面板似乎有一些白色任何人都可以解决这个问题,所以按钮和面板的样式与工具栏相匹配(我使用默认样式,没有修改任何东西)。工具栏顶部的Ext.form.Panel有一些空白区域
编辑:这里是一些代码:
upload_button = Ext.create('Ext.form.field.File', {
buttonOnly: true,
buttonText: "Upload File",
hideLabel: true,
listeners: {..}
});
button_panel = Ext.create('Ext.form.Panel', {
region: 'south',
items: upload_button
});
upload_toolbar = Ext.create('Ext.toolbar.Toolbar',{
width: 400,
region: 'north',
dock: 'top',
items: [ button_panel]});
grid_file = Ext.create('Ext.grid.Panel', {
title: 'File List',
region: 'center',
height: 300,
store: store_file,
dockedItems: [upload_toolbar],
我不知道“顶部”是足够清楚。如果您提供一些代码和屏幕截图,则您更有可能获得答案。这听起来很奇怪,所以我认为这只是一个错误配置,但解决方案可能需要一些css破解。 – Izhaki
也许我应该说“里面的”?不太确定如何正确使用它。 –
是的。 '里面'听起来好多了。 – Izhaki