RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.4k stars 10.51k forks source link

Directory channel listing has incorrect behaviour in high Y resolutions #10024

Closed Jannibal closed 6 years ago

Jannibal commented 6 years ago

Description:

Directory does not list all channels when placing Rocket.Chat on a monitor in portrait mode (resolution based).

Server Setup Information:

Steps to Reproduce:

  1. Place Chrome tab in fullscreen on a monitor in portrait mode (with height more than ~1200 pixels)
  2. Click directory button

Expected behavior:

All the channels available should be listed

Actual behavior:

Few channels are listed, and cannot scroll further. Sorting by name "works" since the end of the channel list appears at the top, but scrolling is still not possible.

Additional information

Different resolutions changes the behaviour: 1920x1200 (landscape) Works 1200x1920 (portrait) Doesn't work

Resolutions tested on the same monitor with same orientation: 2560x1440 (landscape) Doesn't work 1920x1080 (landscape) Works

So it would seem that the resolution is the culprit in this case,.

lunaticmonk commented 6 years ago

@Jannibal Can you provide screenshots or gif? It would be really be helpful to visualize things. Thanks.

Jannibal commented 6 years ago

You can see the same directory view on two different monitors below. In the landscape one, it works as intended, with a scroll bar on the right side which allows the user to scroll down and see all the channels landscape

In the portrait version (with the same resolution, but other orientation) the scroll bar is not present, and the channels look like they "end". There are more channels, but they are not rendered, and there's no scroll bar.

portrait

This problem is present on other monitors that have different resolutions, but in the same orientation. Eg. if I have a monitor with 2560x1440 resolution (still landscape), this problem persists.

Also checked this problem with the Rocket.Chat+ client for Windows, and it's there too. So Chrome Win+Linux and Rocket.Chat+ client for Windows has this problem.

Sorry for the heavily censored screen shots.

theorenck commented 6 years ago

Thanks @Jannibal. @karlprieb can you confirm it as a duplicate?

mddvul22 commented 6 years ago

This is happening for me on the Rocket Chat demo server, using either firefox or Chrome in landscape mode. The below screenshot is from Firefox 52 ESR. There is no scroll bar. It only shows 10 channels.

screenshot-1521224059

Eiken commented 6 years ago

Same here. It seems to be related to running a monitor with such high resolution that the scrollbar is never initialized. If I zoom in to make the scrollbar appear it starts to work.

Gummikavalier commented 6 years ago

We were still experiencing this in 0.64.2 with Firefox.

Custom CSS workaround:

section.rc-directory {
    height: 99% ;
}