Skip to content

Instantly share code, notes, and snippets.

@benjeffery
Last active August 29, 2015 14:22
Show Gist options
  • Save benjeffery/2fec12dc60466b336bd5 to your computer and use it in GitHub Desktop.
Save benjeffery/2fec12dc60466b336bd5 to your computer and use it in GitHub Desktop.
<Draggable handle='.header'
start={initPosition.toObject()}
moveOnStartChange={true}
onStop={this.handleMoveStop}>
<Resizable width={initSize.get('width')} height={initSize.get('height')}
minConstraints={[150, 150]}
maxConstraints={[500, 300]}
onResize={this.handleResize}
onResizeStop={this.handleResizeStop}>
<div className="popup"
style={this.state.size.toObject()}
{...other}>
<div className="header">
{faIcon ? <Icon className='icon' name={faIcon}/> : null}
{title}
</div>
<div className="body">
{children}
</div>
</div>
</Resizable>
</Draggable>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment