Use GeminiScrollbar instead of ScrollPanel

pull/21833/head
Luke Barnard 2017-10-13 17:49:52 +01:00
parent 4b24eab8fd
commit 3468abc975
1 changed files with 3 additions and 7 deletions

View File

@ -30,7 +30,7 @@ import classnames from 'classnames';
import GroupStoreCache from '../../stores/GroupStoreCache';
import GroupStore from '../../stores/GroupStore';
import { showGroupAddRoomDialog } from '../../GroupAddressPicker';
import GeminiScrollbar from 'react-gemini-scrollbar';
const RoomSummaryType = PropTypes.shape({
room_id: PropTypes.string.isRequired,
@ -821,7 +821,6 @@ export default React.createClass({
const GroupAvatar = sdk.getComponent("avatars.GroupAvatar");
const Loader = sdk.getComponent("elements.Spinner");
const TintableSvg = sdk.getComponent("elements.TintableSvg");
const ScrollPanel = sdk.getComponent("structures.ScrollPanel");
if (this.state.summary === null && this.state.error === null || this.state.saving) {
return <Loader />;
@ -969,12 +968,9 @@ export default React.createClass({
{ rightButtons }
</div>
</div>
<ScrollPanel className="mx_GroupView_body"
stickyBottom={false}
startAtBottom={false}
>
<GeminiScrollbar className="mx_GroupView_body">
{ bodyNodes }
</ScrollPanel>
</GeminiScrollbar>
</div>
);
} else if (this.state.error) {