28
Views
7
Comments
Solved
How to make the browser's vertical scrollbar always visible

Depending on the amount of content on a page, the vertical scrollbar may appear or disappear, which can cause the components to shift when the scrollbar appears.

I would like the browser's vertical scrollbar to remain always visible/ active, regardless of the page content.

Does anyone know how to achieve this? Any advice would be greatly appreciated.

2025-12-04 09-01-03
Kiet Phan
Champion
Solution

Hi @Nhat Linh Hoang,

You can easily add this css to your screen like below. It will work :)

  1. screen-container {   
  2.     overflow-y: scroll;
  3. }


2025-12-04 09-01-03
Kiet Phan
Champion

Hi @Nhat Linh Hoang 

You can use this css to make vertical scrollbar always visible.

Put this css the container that you want it to have vertical  scrollbar.

  • overflow-y: scroll;


UserImage.jpg
Nhat Linh Hoang

Thank you for your comments.
I have tried implementing your recommendations. However, it results in having two scrollbars like this (one being the browser's default scrollbar and the other being a custom-defined one as I assume). Do you know how to resolve this? Ideally, I would like only one scrollbar to be displayed at all times. Thanks a bunch!

2025-12-04 09-01-03
Kiet Phan
Champion
Solution

Hi @Nhat Linh Hoang,

You can easily add this css to your screen like below. It will work :)

  1. screen-container {   
  2.     overflow-y: scroll;
  3. }


UserImage.jpg
Nhat Linh Hoang
2025-12-04 09-01-03
Kiet Phan
Champion

You're welcome, glad to hear it works,

Feel free to ask question if there is any, i'm happy to help :)

2024-12-02 13-16-47
Vipin Yadav

Hi,

you can achieve this by adding some custom CSS to your application's style sheet. Here's a simple CSS rule that you can use: 

html {    

overflow-y: scroll; 

I have added .oml file and screen shot for your references please check.

Thanks,

Vipin Yadav

FrontEnd.oml
2020-07-21 19-28-50
Rajat Agrawal
Champion

Hi @Nhat Linh Hoang,

What you need to do fix some height for that amount and apply CSS on that before that make one wrapper class for that amount and apply css:

Below we have syntax for your example:

height:200px;

overflow-y:scroll;


Regards,

Rajat

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.