scrollbar

scrollTo() function does nothing

不问归期 提交于 2020-06-29 13:13:08
问题 I wanted to scroll to the bottom of the page using vanilla JS, but I encountered a problem. The code below is supposed to scroll to the bottom of the page: window.scrollTo(0,document.body.scrollHeight); Whereas all it does is logs "undefined" in the console. Inputting document.body.scrollHeight returns an integer 736. Other than that, it doesn't matter what I input into the function's parameters, nothing happens. What more, it only happens on one website. What may matter (not sure) is that

How to implement Auto-Hide Scrollbar in SWT Text Component

混江龙づ霸主 提交于 2020-06-25 09:19:08
问题 I have a SWT Text component, for which I set SWT.MULTI , SWT.V_SCROLL and SWT.H_SCROLL to show the scrollbar when required. I found that even content is smaller than the text component then also scrollbar are visible in disable state. Is there is any way through which I can auto hide the scrollbar? Like java Swing has JScrollPane.horizontal_scrollbar_as_needed 回答1: That works on all cases: Text text = new Text(parent, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); Listener scrollBarListener = new

How to remove double scroll bar?

谁说我不能喝 提交于 2020-06-25 03:35:52
问题 I have a double scroll bar on my website in Chrome and Firefox (both browsers are up to date). I have been researching the web and stackoverflow and have tried following suggested options on the html element: html { overflow: hidden; } - afterwards - html { overflow: auto; } - and - html { overflow: scroll; } None of them got rid of the double bar, even worse some blocked me from scrolling at all. I'm not sure which other element to target or what might be causing this. Does anyone have a

How do you hide that floating scroll indicator thing on mobile?

徘徊边缘 提交于 2020-06-23 14:50:44
问题 At first I thought you could use this rule which works for desktop Chrome: ::-webkit-scrollbar { display: none } But it didn’t work. After messing with webkit-scrollbar and its other selectors, I realized that this thing might not be part of the webkit-scrollbar after all: That’s why it’s not affected to whatever rules I make for webkit-scrollbar . That floating scroll indicator thing only appears when you scroll a page. For context, I’m trying to hide that thing for a website I’m using for

Horizontal scrollbar appears with overflow content on right but not on left?

血红的双手。 提交于 2020-06-15 04:07:41
问题 I have an element with position: absolute in body with some part of it to the left from left side. #test{ position: absolute; height: 100px; width: 100px; left: -50px; background-color: lime; } I expect that horizontal scrollbar should appear allowing to scroll the document to the hidden part of the element, but it doesn't. So, I have some questions about the case: Why it happens so, why scrollbar doesn't appear (it works fine with symmetric layout on the right side)? Is it ever possible to

disable mouse wheel scrolling in scrollviewer wpf

∥☆過路亽.° 提交于 2020-06-14 06:50:33
问题 In xaml code <StackPanel> <ScrollViewer> <local:CustomCanvas> </local:CustomCanvas> </ScrollViewer> </StackPanel> CustomCanvs has a zoom in/out function. But when I spin the mouse wheel in the CustomCanvas area, ScrollViewer's scrollbar works and zoom in/out don't work. And when I scroll the scrollbar of the ScrollViewer, not only CustomCanvas' zoom in/out work but also scrolling of the ScrollViewer work well. When I spin the mouse wheel, I want only zoom in/out. And when I scroll the

disable mouse wheel scrolling in scrollviewer wpf

我与影子孤独终老i 提交于 2020-06-14 06:50:06
问题 In xaml code <StackPanel> <ScrollViewer> <local:CustomCanvas> </local:CustomCanvas> </ScrollViewer> </StackPanel> CustomCanvs has a zoom in/out function. But when I spin the mouse wheel in the CustomCanvas area, ScrollViewer's scrollbar works and zoom in/out don't work. And when I scroll the scrollbar of the ScrollViewer, not only CustomCanvas' zoom in/out work but also scrolling of the ScrollViewer work well. When I spin the mouse wheel, I want only zoom in/out. And when I scroll the

Strange z-index behavior with scrollbars under Chrome

北慕城南 提交于 2020-06-09 09:23:30
问题 Using z-index CSS property on 'fixed' positioned elements gives me a strange behavior under Chrome. When Firefox and Opera browsers give me the awaited result, Chrome does not seem to respect the z-index property, displaying the scrollbar above the red overlay (see code and Fiddle bellow). HTML: <div class="left"> <div class="placeholder"></div> </div> <div class="right"></div> <div class="overlay"></div> CSS: .left { background-color: yellow; bottom: 0; left: 0; overflow: auto; position:

Change width of tk Combobox dropdown scrollbar

纵然是瞬间 提交于 2020-06-01 05:14:10
问题 Is it possible to change the width of a tk Combobox scrolldown bar in python 2.7? I'm not talking about the combobox width, but rather the scrollbar width on the combobox that appears when the combobox is active. For example: self.cmbSortOrder=ttk.Combobox(self.frame2, value=l, textvariable=self.SortOrder) self.cmbSortOrder.bind("<<ComboboxSelected>>", self.reloadList) self.cmbSortOrder.pack(side=LEFT) 回答1: you can do it using configure() : This class is used to manipulate the style database.

Custom scrollbar only in one div

不打扰是莪最后的温柔 提交于 2020-05-24 21:34:11
问题 I want to have a custom scroll bar in Chrome. So, I'm using this sass: ::-webkit-scrollbar { width: 0.5em; height: 0.5em; } ::-webkit-scrollbar-thumb { background-color: rgba(255,255,255,.1); border-radius: 3px; &:hover { background: rgba(255,255,255,.2); } } My problem is that I want this scrollbar style only in an specific div. But if I do: #boardslist { ::-webkit-scrollbar { width: 0.5em; height: 0.5em; } ::-webkit-scrollbar-thumb { background-color: rgba(255,255,255,.1); border-radius: