Use GeminiScrollbar instead of ScrollPanel
This commit is contained in:
parent
4b24eab8fd
commit
3468abc975
1 changed files with 3 additions and 7 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue