AG-528 Document and use in examples overriding of style in child (react component) divs

This commit is contained in:
Sean Landsman
2017-06-14 15:32:09 +01:00
parent 464a0ea9f4
commit b54d549959
6 changed files with 6 additions and 13 deletions

View File

@@ -1,3 +0,0 @@
.ag-group-value .ag-react-container {
display: inline-block;
}

View File

@@ -3,8 +3,6 @@ import React, {Component} from "react";
import {AgGridReact} from "ag-grid-react";
import MedalRenderer from "./MedalRenderer";
import "./GroupedRowInnerRendererComponentExample.css";
import "ag-grid-enterprise";
export default class GroupedRowInnerRendererComponentExample extends Component {

View File

@@ -8,6 +8,9 @@ export default class MedalRenderer extends Component {
this.gold = this.props.data.gold;
this.silver = this.props.data.silver;
this.bronze = this.props.data.bronze;
// override the containing div so that the +/- and label are inline
this.props.reactContainer.style.display = "inline-block";
}
render() {

View File

@@ -1,7 +1,3 @@
.ag-full-width-row .ag-react-container {
height: 100%
}
.full-width-panel {
position: relative;
background: #fafafa;

View File

@@ -16,6 +16,9 @@ export default class DetailPanelComponent extends Component {
this.onGridReady = this.onGridReady.bind(this);
this.onSearchTextChange = this.onSearchTextChange.bind(this);
// override the containing div so that the child grid fills the row height
this.props.reactContainer.style.height = "100%";
}
onGridReady(params) {

View File

@@ -1,7 +1,3 @@
.ag-react-container {
display: block;
}
.ag-cell {
padding-top: 2px !important;
padding-bottom: 2px !important;