Skip to content

Commit 78c3fe3

Browse files
Merge pull request #30 from adazzle/jp-styling-changes
add titles to cells and remove overflow
2 parents a9b5d6c + 708a90b commit 78c3fe3

File tree

6 files changed

+7
-5
lines changed

6 files changed

+7
-5
lines changed

src/Canvas.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ var Canvas = React.createClass({
6565
position: 'absolute',
6666
top: 0,
6767
left: 0,
68-
overflowX: 'auto',
69-
overflowY: 'scroll',
68+
//overflowX: 'auto',
69+
//overflowY: 'scroll',
7070
width: this.props.totalWidth,
7171
height: this.props.height,
7272
transform: 'translate3d(0, 0, 0)'

src/Cell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ var Cell = React.createClass({
3737
renderCellContent(props) {
3838
var formatter = React.isValidElement(this.props.formatter) ? cloneWithProps(this.props.formatter, props) : this.props.formatter(props);
3939
return (<div
40-
className="react-grid-Cell__value">{formatter} {this.props.cellControls}</div>)
40+
className="react-grid-Cell__value" title={this.props.value}>{formatter} {this.props.cellControls}</div>)
4141

4242
},
4343

src/HeaderCell.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ var HeaderCell = React.createClass({
122122
});
123123

124124
function simpleCellRenderer(props) {
125-
return <div className="rex-widget-HeaderCell__value">{props.column.name}</div>;
125+
return <div className="rex-widget-HeaderCell__value" title={props.column.name}>{props.column.name}</div>;
126126
}
127127

128128
module.exports = HeaderCell;

src/Viewport.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ var Viewport = React.createClass({
119119
bottom: 0,
120120
left: 0,
121121
right: 0,
122-
overflow: 'hidden',
122+
//overflow: 'hidden',
123123
position: 'absolute',
124124
top: this.props.rowOffsetHeight
125125
};

themes/reactGrid.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@
6262
}
6363

6464
.react-grid-Grid {
65+
overflow: scroll;
6566
background-color: #ffffff;
6667
border: 1px solid #dddddd;
6768
}

themes/reactGrid.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
@react-grid-scrollbar-color: @gray-light;
44

55
.react-grid-Grid {
6+
overflow: scroll;
67
background-color: @body-bg;
78
border: 1px solid @table-border-color;
89
}

0 commit comments

Comments
 (0)