We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Subj I've tried change docked variable when component render
isDocked(){ let docked = false; if (this.isDeviceSize(StyleResizable.statics.Sizes.MEDIUM) || this.isDeviceSize(StyleResizable.statics.Sizes.LARGE)) { docked = true; } return docked; }, render() { let header = ( <div style={this.getStyles()} onTouchTap={this._onHeaderClick}> material ui </div> ); this.docked = this.isDocked(); return ( <LeftNav ref="leftNav" docked={this.docked} isInitiallyOpen={false} header={header} menuItems={menuItems} selectedIndex={this._getSelectedIndex()} onChange={this._onLeftNavChange} /> ); },
The text was updated successfully, but these errors were encountered:
I have only one solution
componentWillMount(){ let setTabsState = function() { this.setState({isDocked: !(document.body.clientWidth <= 647)}); }.bind(this); setTabsState(); window.onresize = setTabsState; }
Sorry, something went wrong.
I got this to work by adding a few lines to the _onWindowResize function in left-nav.js:
if (this.props.docked) { this.open() } else { this.close() }
Fix yaml format
52bcfd4
Validated with http://www.yamllint.com/, closes mui#1633
No branches or pull requests
Subj
I've tried change docked variable when component render
The text was updated successfully, but these errors were encountered: