Change some default playground styling
Reviewed By: danielbuechele Differential Revision: D6977989 fbshipit-source-id: 64975685490b8a2230d4effc8791c028b680d2b7
This commit is contained in:
committed by
Facebook Github Bot
parent
a6b7e34187
commit
4b7efb73d7
@@ -251,7 +251,7 @@ export default class YogaNode extends Component<Props, State> {
|
||||
className={`YogaNode ${isFocused ? 'focused' : ''} ${className || ''} ${
|
||||
this.state.visible ? '' : 'invisible'
|
||||
}`}
|
||||
style={{left, top, width, height}}
|
||||
style={path.length == 0 ? {width, height} : {left, top, width, height}}
|
||||
onDoubleClick={this.onDoubleClick}
|
||||
onClick={this.onClick}>
|
||||
{label && <div className="label">{label}</div>}
|
||||
|
Reference in New Issue
Block a user