jeanluca
16 May 2012, 12:04 PM
Hello
I have this floating panel which should be completely black. Unfortunately it is completely white :(
Here is my panel:
var panel = Ext.create('Ext.Panel', {
floating: true,
html: '<div style="background-color:black"></div>',
style: 'height:100px;top:10px;background-color:black;',
width:'100%'
}) ;
The white background is set on the .x-panel-inner element which is defined by the following css selector:
.x-panel.x-floating > .x-panel-inner, .x-panel.x-floating .x-scroll-view, .x-panel.x-floating .x-body, .x-msgbox.x-floating > .x-panel-inner, .x-msgbox.x-floating .x-scroll-view, .x-msgbox.x-floating .x-body, .x-form.x-floating > .x-panel-inner, .x-form.x-floating .x-scroll-view, .x-form.x-floating .x-body
So how do I make a floating panel completely black?
cheers
Luca
Update: I get the same floating panels as shown here http://docs.sencha.com/touch/2-0/#!/guide/floating_components (black border and white content area)
Update2: its fixed when using Ext.Component!
I have this floating panel which should be completely black. Unfortunately it is completely white :(
Here is my panel:
var panel = Ext.create('Ext.Panel', {
floating: true,
html: '<div style="background-color:black"></div>',
style: 'height:100px;top:10px;background-color:black;',
width:'100%'
}) ;
The white background is set on the .x-panel-inner element which is defined by the following css selector:
.x-panel.x-floating > .x-panel-inner, .x-panel.x-floating .x-scroll-view, .x-panel.x-floating .x-body, .x-msgbox.x-floating > .x-panel-inner, .x-msgbox.x-floating .x-scroll-view, .x-msgbox.x-floating .x-body, .x-form.x-floating > .x-panel-inner, .x-form.x-floating .x-scroll-view, .x-form.x-floating .x-body
So how do I make a floating panel completely black?
cheers
Luca
Update: I get the same floating panels as shown here http://docs.sencha.com/touch/2-0/#!/guide/floating_components (black border and white content area)
Update2: its fixed when using Ext.Component!