2016-05-10 3 views
0

RaisedButtonsコンポーネントは、material-uiのバージョンv0.15でもうfullWidthにならず、これはv0.15-betaで機能しました。要素にminWidth: '100%'を追加して解決しました。これは意図的なのですか、私はここで何か間違っていますか?RaisedButton fullWithがv0.15でもう展開されない

const buttonStyle = { 
    minWidth:'100%',//<- works with minWidth set 
}; 
return (
    <MuiThemeProvider muiTheme={muiTheme}> 
    <div style={style}> 
     <SelectField max-height={200} style={selectStyle} fullWidth={true} onChange={this.onFondsSelect} value={displayValue} id="fonds-selection"> 
     {this.menuItems} 
     </SelectField> 
     <RaisedButton style={buttonStyle} onClick={this::this.startClick} fullWidth={true}>Button 1</RaisedButton><br/> 
     <RaisedButton style={buttonStyle} onClick={this.resetStart} fullWidth={1}>BUtton 2</RaisedButton> 
    </div> 
    </MuiThemeProvider> 
); 

答えて

1

このバグは材料-UI V15に導入されたあなたは、問題のコメントに見ることができるよう
問題=>github.com/callemall/material-ui/issues/4226

はしかし、fullWidthは、スタイルオブジェクトの賛成でV16で廃止されることがあります。あなたは正しい方法でそれをやっています。

関連する問題