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