Fixed sizing of democratic view
parent
277710bd93
commit
12efa3eb2c
|
|
@ -91,11 +91,11 @@ class Democratic extends React.PureComponent
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Math.ceil(this.state.peerWidth) !== Math.ceil(0.9 * x))
|
if (Math.ceil(this.state.peerWidth) !== Math.ceil(0.94 * x))
|
||||||
{
|
{
|
||||||
this.setState({
|
this.setState({
|
||||||
peerWidth : 0.95 * x,
|
peerWidth : 0.94 * x,
|
||||||
peerHeight : 0.95 * y
|
peerHeight : 0.94 * y
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
@ -160,9 +160,9 @@ class Democratic extends React.PureComponent
|
||||||
{
|
{
|
||||||
return (
|
return (
|
||||||
<Peer
|
<Peer
|
||||||
key={peer.id}
|
key={peer}
|
||||||
advancedMode={advancedMode}
|
advancedMode={advancedMode}
|
||||||
id={peer.id}
|
id={peer}
|
||||||
spacing={6}
|
spacing={6}
|
||||||
style={style}
|
style={style}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue