#40: Support for remote Windows mounts - partial
This commit is contained in:
@@ -107,7 +107,7 @@ export default connect(mapStateToProps, mapDispatchToProps)(props => {
|
||||
}
|
||||
|
||||
return (
|
||||
<Grid>
|
||||
<Grid noScroll>
|
||||
<Text colSpan={columns=>columns / 3}
|
||||
rowSpan={4}
|
||||
text={'Release'}
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user