projects
/
osm
/
UI.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RIFT-15625: API changes to accommodate projects
[osm/UI.git]
/
skyquake
/
framework
/
widgets
/
panel
/
panel.jsx
diff --git
a/skyquake/framework/widgets/panel/panel.jsx
b/skyquake/framework/widgets/panel/panel.jsx
index
c078069
..
03877b0
100644
(file)
--- 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';
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(className) {
wrapperClass = `${wrapperClass} ${className}`
}
+ if(column) {
+ style.flexDirection = 'column';
+ }
return (
return (
- <div className={wrapperClass} {...props}>
+ <div className={wrapperClass}
style={style}
{...props}>
{this.props.children}
</div>)
}
}
{this.props.children}
</div>)
}
}
-
+PanelWrapper.defaultProps = {
+ style: {}
+}
export default Panel;
export default Panel;