Skip to content

Commit ce7350e

Browse files
committed
component.wrapper.AmChart: remove the root level height & width style attributes #6643
1 parent 4fc0ca9 commit ce7350e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

apps/colors/view/Viewport.mjs

+3-2
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,14 @@ class Viewport extends BaseViewport {
3737
flex : 'none'
3838
}, {
3939
module : GridContainer,
40-
reference: 'grid',
41-
wrapperStyle: {height: '600px'}
40+
reference: 'grid'
4241
}, {
4342
module : PieChartComponent,
43+
flex : 1.3,
4444
reference: 'pie-chart'
4545
}, {
4646
module : BarChartComponent,
47+
flex : 1.3,
4748
reference: 'bar-chart'
4849
}],
4950
/**

src/component/wrapper/AmChart.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class AmChart extends Component {
5454
* @member {Object} _vdom
5555
*/
5656
_vdom:
57-
{style: {position: 'relative', height: '100%', width: '100%'}, cn: [
57+
{style: {position: 'relative'}, cn: [
5858
{style: {position: 'absolute', height: '100%', width: '100%'}, cn: [
5959
{style: {color:'red',height: '100%'}}
6060
]}

0 commit comments

Comments
 (0)