locked
How to make scroll bar always show

    Question

  • I want to make scroll bar always shown in app with html+js.

    But the css below all not work:

    overflow-x:visible;
    
    overflow-x:scroll;
    

    it will auto hide when no focus on.

    Could i have a always appeared scroll? please help.

    Thursday, September 5, 2013 1:32 PM

Answers

  • Hi Forzas,

    Add the following code:

    -ms-overflow-style:scrollbar;
    	overflow-x:visible;
    	overflow-x:scroll;

    It should work fine.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by Forzas Friday, September 6, 2013 5:29 AM
    Friday, September 6, 2013 2:28 AM
    Moderator

All replies

  • Hi Forzas,

    Add the following code:

    -ms-overflow-style:scrollbar;
    	overflow-x:visible;
    	overflow-x:scroll;

    It should work fine.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by Forzas Friday, September 6, 2013 5:29 AM
    Friday, September 6, 2013 2:28 AM
    Moderator
  • it works, thx.

    but the style seems different with the auto generated scroll bar without 

    -ms-overflow-style:scrollbar;


    Friday, September 6, 2013 5:28 AM