Fixed sizing of democratic view

master
Håvar Aambø Fosstveit 2019-11-26 12:44:04 +01:00
parent 277710bd93
commit 12efa3eb2c
1 changed files with 5 additions and 5 deletions

View File

@ -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}
/> />