X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fframework%2Fwidgets%2Fpanel%2Fpanel.jsx;h=03877b09387b1627ba3a602ba97ccc0557bf38b9;hb=3f7d3075ddc01e1f26ecf4fa472189d67a8d9c50;hp=c0780693e26d109542fc4d1f165a448cb39b96da;hpb=939003042b55d4d24dfbb11daac75821f65c04dc;p=osm%2FUI.git diff --git a/skyquake/framework/widgets/panel/panel.jsx b/skyquake/framework/widgets/panel/panel.jsx index c0780693e..03877b093 100644 --- a/skyquake/framework/widgets/panel/panel.jsx +++ b/skyquake/framework/widgets/panel/panel.jsx @@ -60,17 +60,22 @@ Panel.defaultProps = { export class PanelWrapper extends Component { render() { let wrapperClass = 'skyquakePanelWrapper'; - let {className, ...props} = this.props; + let {className, column, style, ...props} = this.props; if(className) { wrapperClass = `${wrapperClass} ${className}` } + if(column) { + style.flexDirection = 'column'; + } return ( -
+
{this.props.children}
) } } - +PanelWrapper.defaultProps = { + style: {} +} export default Panel;