scrollbar

Scrollbar track thinner than thumb

一个人想着一个人 提交于 2020-02-27 23:18:39
问题 I am trying to style a scrollbar using css and I want to achieve the following look (ignore the background): In other words, I want the thumb to be thicker than the track, which I only want to be a line. I have researched this and found solutions for people wanting to do the opposite, that is a thumb smaller than the track, but no way of achieving what I want. As an alternative option, I have thought about maybe using the border-right property with some sort of negative offset, but again no

Vertical Scrollbar for Eclipse GridData

馋奶兔 提交于 2020-02-04 01:07:51
问题 I have the following java code in an eclipse application: import org.eclipse.swt.layout.GridData; import org.eclipse.swt.widgets.List; import org.eclipse.swt.widgets.Composite; import org.eclipse.datatools.connectivity.oda.OdaException; public void setupList(Composite parent, List items) throws OdaException { GridData myGrid = new GridData(GridData.FILL_HORIZONTAL); List myList = new List(parent, SWT.V_SCROLL); myList.setLayoutData(myGrid); myList.setItems(items); } In my program, the number

HTML element scrollbar on the left [duplicate]

跟風遠走 提交于 2020-02-02 13:34:25
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: DIV Vertical Scroll bar on left is there a way with css or js to show the scrollbar of an element on the left instead of on the right? i don't need a crossbrowser way i need it only on Firefox. 回答1: If you want the direction to be left-to-right, but still want to violate every expectation a user has to scrollbars, then you can hack it using javascript. Simply create a 1px wide div on the left side of your

Remove scrollbar from android support design navigation drawer?

断了今生、忘了曾经 提交于 2020-02-01 17:25:46
问题 I just updated the support design library from 22.2.1 to 23.0.1 and immediately noticed the presence of a scrollbar in the navigation drawer. I tried to use android:scrollbars="none" But that didn't fix it. Is there any other way to remove the scrollbar? 回答1: Unfortunately the scrollbar is set in the NavigationMenuView layout not in the NavigationView , for this reason if you use android:scrollbars="none" the scrollbar is still present. You can do it programmatically calling this method:

Remove scrollbar from android support design navigation drawer?

雨燕双飞 提交于 2020-02-01 17:25:44
问题 I just updated the support design library from 22.2.1 to 23.0.1 and immediately noticed the presence of a scrollbar in the navigation drawer. I tried to use android:scrollbars="none" But that didn't fix it. Is there any other way to remove the scrollbar? 回答1: Unfortunately the scrollbar is set in the NavigationMenuView layout not in the NavigationView , for this reason if you use android:scrollbars="none" the scrollbar is still present. You can do it programmatically calling this method:

Test if page has a horizontal scrollbar (computer & mobile devices)

我只是一个虾纸丫 提交于 2020-01-31 16:44:11
问题 On a web page, I need to test if there is a horizontal scrollbar or not (so that I programmatically change the css of some other element). Is there some way to get that information using jquery (or pure javascript)? I tested function isHorizontalScrollbarEnabled() { return $(document).width()!=$(window).width(); } but it does not seem to work with all browsers (does not work for example with a recent Samsung phone I tested). I need it to work with all browsers, including recent mobile devices

Test if page has a horizontal scrollbar (computer & mobile devices)

偶尔善良 提交于 2020-01-31 16:43:28
问题 On a web page, I need to test if there is a horizontal scrollbar or not (so that I programmatically change the css of some other element). Is there some way to get that information using jquery (or pure javascript)? I tested function isHorizontalScrollbarEnabled() { return $(document).width()!=$(window).width(); } but it does not seem to work with all browsers (does not work for example with a recent Samsung phone I tested). I need it to work with all browsers, including recent mobile devices

JavaFX: Disable horizontal scrollbar of TableView

久未见 提交于 2020-01-30 04:47:39
问题 I have the following question: I would like to disable the horizontal scrollbar of my TableView. It may not be visible, but also the TableView may not be scrolled horizontally either. The visibility of the horizontal scrollbar can be set in the CSS: .table-view *.scroll-bar:horizontal *.increment-button, .table-view *.scroll-bar:horizontal *.decrement-button { -fx-background-color: null; -fx-background-radius: 0; -fx-background-insets: 0; -fx-padding: 0; } .table-view *.scroll-bar:horizontal

Change width of scrollbars

大兔子大兔子 提交于 2020-01-28 02:12:17
问题 I am working on a program for touchscreens. I am using c# and Visual studio 2008. Is there any way to change the width of the scrollbars? I know that i can change in Display Properties of Windows. But i only want in my programm not in the complete system. Thanks for ya help! 回答1: Check this out: Winforms - Adjust width of vertical scrollbar on CheckedListBox Worth mentioning too: .NET Compact framework - make scrollbars wider More of the same, but this time with a better solution through the

jQuery Tiny Scrollbar plugin - Fails to show all content on refresh

徘徊边缘 提交于 2020-01-25 08:10:46
问题 I've implemented Tiny Scrollbar plugin on a website, for good-looking div scrolling. But weird stuff happens when I refresh the page in Safari or Chrome. It seams to clip some of my content. What happens upon a page refresh, that could make it behave like this? Please have a look at mettestentoft.dk I've tried using the same plugin on a simple test page, where a page refresh would make the plugin add a 'scrollbar disable' class to the div, while clicking a link linking to the same page, would