I found a bug on extjs 6.5.2 [modern] panel
when setting its body background to transparent.
Here is the code that reproduces the issue.
Ext.create({
xtype: 'panel',
bodyStyle: 'background: red;',
bodyPadding: true, // don't want content to crunch against the borders
fullscreen: true,
layout: {
type: 'vbox',
align: 'stretch',
pack: 'start'
},
title: 'Filters',
items: [{
xtype: 'panel',
flex: 1,
bodyStyle: 'background: green;'
}, {
xtype: 'panel',
flex: 1,
bodyStyle: 'background: transparent;'
}]
});
Add this code to a sencha fiddle (inside the launch()
function) and first run it using Ext JS 6.5.0.775 - Material where everything works as expected and then run it using Ext JS 6.5.2.463 - Material to see the bug (the panel with the transparent body background is painted white).
Anyway. Is there a way to patch this bug with a single css or i have to set bodyStyle: 'background: some-color;'
to every panel
i use for my application.
Note that i use ui
s generated from a sencha themer on most of my panels.
As per your requirement, you can use
ui:'your_ui_name'
config for ExtJS component. You can create your custom UI as per your requirement like below code exampleThis above code should be written your
scss
file.Here is my custom-ui-based-app working Git-lab library. You can do download/clone and run in your system for testing. I hope this will help you or guide you to achieve your requirement.
Code Snippet