#40: Support for remote Windows mounts - partial

This commit is contained in:
sgraves committed 2019-10-01 12:25:39 -05:00
1 parent 888a84f5a7
commit 686774741f
4 files changed
+36 -19

No files matched your search

@@ -107,7 +107,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(props => {
}
return (
<Grid>
<Grid noScroll>
<Text colSpan={columns=>columns / 3}
rowSpan={4}
text={'Release'}
+10 -11
View File
@@ -3,14 +3,6 @@ import './Grid.css';
import GridComponent from './GridComponent/GridComponent';
export default class extends Component {
constructor(props) {
super(props);
window.addEventListener("resize", this.updateSizeAsync);
this.checkSizeInterval = setInterval(()=> {
this.updateSize()
}, 2000);
}
checkSizeInterval;
state = {
@@ -58,6 +50,10 @@ export default class extends Component {
};
componentDidMount() {
window.addEventListener("resize", this.updateSizeAsync);
this.checkSizeInterval = setInterval(()=> {
this.updateSize()
}, 2000);
this.updateSizeAsync();
}
@@ -108,15 +104,18 @@ export default class extends Component {
.filter(i => i !== null);
}
const style = {
let style = {
style: {
gridTemplateColumns: '4px '.repeat(dimensions.columns).trim(),
gridTemplateRows: '4px '.repeat(dimensions.rows).trim(),
gridAutoColumns: '4px',
gridAutoRows: '4px'
gridAutoRows: '4px',
}
};
if (this.props.noScroll) {
style['style'].overflowX = 'visible';
style['style'].overflowY = 'visible';
}
return (
<div
ref='GridOwner'