Questions tagged [scrollbars]

A scroll bar is a part of a graphical user interface element to present the user with a perspective of a percentage of the page shown. The scroll bar consists mainly of three parts: the track, thumb and buttons (or arrows). A user can click and drag the thumb in order to reveal more contents of the page. In the event that a user uses a scrolling function, the thumb tracks the page progress.

Some basic definitions:
A scroll bar is a part of a graphical user interface element to present the user with a perspective of a percentage of the page shown. The scroll bar consists mainly of three parts: the track, thumb and buttons (or arrows). A user can click and drag the thumb in order to reveal more contents of the page. In the event that a user uses a scrolling function, the thumb tracks the page progress.

What questions should have this tag?
This tag, or topic, is very localized and should be used in-detail, and preferably include a broader instance than the problem itself. It should be included with questions concerning the User Interface elements in which the scroll bars behavior or appearance can be affected.

221 questions
115
votes
6 answers

Is there any way to enable scrollbars for RecyclerView in code?

As we saw, RecyclerView is more effective than ListView, so I prefer to use it in my project. But recently I have a trouble when put it in my custom ViewGroup. RecyclerView is easy to set scrollbars in xml like…
Kevin Liu
  • 1,463
  • 3
  • 10
  • 13
114
votes
5 answers

How to add a ScrollBar to a Stackpanel

In my WPF application, I have a Stackpanel containing several controls inside them. How can I add a Scrollbar to this stackpanel.
Shamim Hafiz
  • 19,616
  • 36
  • 104
  • 164
51
votes
3 answers

android ListView scrollbarStyle

Does anyone know of any documentation on the android:scrollbarStyle? I'd like to see examples of each of the 4 values w/ screenshots if possible. I see the difference between outside & inside types, but what are the Inset & Outset parts all about?…
Ben
  • 14,789
  • 19
  • 67
  • 115
22
votes
2 answers

Chrome scrollbars always visible now

I might be late to the party, but did chrome just change their browser (Version 42.0.2311.90 (64-bit)) on Mac (OS 10.10.3) now to default to visible scrollbars? The scrollbars were not there previously.
tesla10E3G
  • 223
  • 1
  • 2
  • 5
17
votes
2 answers

Remove scrollbar from ScrollView programmatically in Android

How can I remove the scroll bar from a ScrollView programmatically? setScrollBarStyle() only changes only the style of the scrollbar. I want to access the xml attribute android:scrollbars programmatically. Is there any way to do…
weakwire
  • 9,169
  • 8
  • 51
  • 78
12
votes
5 answers

How to force vertical scrollbar always be visible from AutoScroll in WinForms?

Using VS2010 and .NET 4.0 with C# and WinForms: I always want a Vertical Scrollbar to show for my panel as a disabled scrollbar (when it's not needed, and a enabled one when it can be used. So it's like a hybrid AutoScroll. I've tried using…
user1104203
  • 147
  • 1
  • 1
  • 8
12
votes
2 answers

How do I format the scrollbar style on a textarea?

I'm sure this shouldn't be as difficult as it seems... I can't use a JQuery scrollpane because I need it to act as a standard form textarea when it gets submitted.. needs to work in IE7+, Safari & firefox at least... any ideas? Tried…
Chris Carruthers
  • 121
  • 1
  • 1
  • 3
12
votes
3 answers

How to draw scrollbars on WPF Canvas

I am trying to create a canvas with scroll bars. Can anyone help me give some ideas on how to do this? I have already tried using grid of 1 row and 1 column but due to certain constraints I want to use canvas. Thanks in advance!
Scooby
  • 591
  • 3
  • 7
  • 19
10
votes
2 answers

Lion scrollbar colors

The scrollbars in Lion seem to be based on the HTML's background color (lighter color BG = black scrollbars, darker BG = white). The problem I'm running into is from what (I assume) is a common trick regarding footers. I usually set the background…
Parrots
  • 25,268
  • 14
  • 56
  • 78
10
votes
11 answers

How to make scrollbars appear when DIV doesn't have enough room but keep DIV centered?

I want to create a centered form. HTML:
Dave
  • 17,420
  • 96
  • 300
  • 582
6
votes
2 answers

Two vertical scrollbars in Firefox when using overflow-x:hidden

Ive just built a website for a client, and Ive got an odd problem that only occurs in Firefox browser. At the top of the page I have a navigation bar that fills the width of the browser. Ive used the technique described here…
Martin Harvey
  • 223
  • 2
  • 4
  • 9
6
votes
3 answers

Why does the Eclipse IDE horizontal scrollbar keep resetting back to the absolute left column

I have Eclipse 3.7.1 classic, with added Android plugin and HTML editor plugin. If I have a long line of text in the HTML editor and scroll the horizontal scrollbar to where I want to be, when I place the cursor there and start to type, after a…
Ben
  • 1,424
  • 14
  • 23
6
votes
3 answers

How do I detect if there are scrollbars on a browser window?

I need to be able to detect whether there are scrollbars (both vertical and horizontal) on a browser window. I've been using this code but it isn't working reliably in Firefox 5. JFL.GetScrollbarState = function () { var myWidth = 0; var…
jfriend00
  • 580,699
  • 78
  • 809
  • 825
6
votes
3 answers

Autoscroll Doesn't work in Child UserControl

I have a UserControl Parent that contains Child controls. I would like my Parent control to Autoscroll when it is too small for its Child. To get Autoscroll, I've set AutoScroll to True in my Parent, and ensured that the Child is large enough that I…
Nathan
  • 1,627
  • 17
  • 24
6
votes
2 answers

CSS 100% width on browser resize

Hi all I'm trying to build a layout using CSS and I'm coming up against a strange problem. Well strange for me. I have 3 divs a Header, a Footer and a MainContent area. Header and Footer must remain at a constant width of 100% while the MainContent…
DotsC
  • 61
  • 1
  • 1
  • 3
1
2 3
14 15