scrollbar

Using ui-grid constants to disable scrollbars

一曲冷凌霜 提交于 2019-12-20 09:49:04
问题 With the latest version of ui-grid (v3.0.0-rc.16) it is possible to turn the horizontal and vertical scrollbar off seperately. I got this working by exchanging $scope.gridOptions.enableScrollbars = false; with $scope.gridOptions.enableHorizontalScrollbar = 0; $scope.gridOptions.enableVerticalScrollbar = 0; In the sources of ui-grid there are three Constants defined for the scrollbars: scrollbars: { NEVER: 0, ALWAYS: 1, WHEN_NEEDED: 2 } Facing the fact that ui-grid is still unstable and

CSS vertical scrollbar padding left/right in UL possible?

牧云@^-^@ 提交于 2019-12-20 08:59:17
问题 Is it possible to add padding or margin around the scrollbar item or scrollbar-track? I've tried and can only get padding top/bottom. Adding padding to the UL has no effect on scrollbar. Negative margins on scrollbar have no effect. Ideas? JS Fiddle here. ::-webkit-scrollbar { width: 12px; margin:10px; } ::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); -webkit-border-radius: 10px; border-radius: 10px; padding: 10px } ::-webkit-scrollbar-thumb { -webkit-border

Reposition scroll bar of ListView with padding

旧时模样 提交于 2019-12-20 08:06:03
问题 I have a ListView with padding to the right (and left). Currently the list looks something like this: ----------------- | | ROW | | | |-------------| | | | ROW | | | |-------------|#| | | ROW |#| | |-------------| | | | ROW | | | ----------------- | Where the right-most line is the edge of the screen, with the # s being the scrollbar and the white space to the right of it being the ListView 's padding to the right. What I is for the scroll bar to be to the right of the padding like this: _ --

How to prevent background scrolling in canvas?

99封情书 提交于 2019-12-20 06:39:47
问题 I am using ttk.Scrollbar to scroll elements inside a Tkinter.Canvas. Unfortunately a background image of this canvas will also scroll. How can I prevent this? Here is an example of what I use: import Tkinter as tk from ttk import * # first canvas with scrollbar root = tk.Tk() canv1 = tk.Canvas(root, width=200, height=200, bg='green') sbar = Scrollbar(root, orient="vertical") sbar.config(command=canv1.yview) sbar.pack(side="right", fill="y") canv1.config(yscrollcommand=sbar.set) canv1.pack

Using one scroll bar to control two DataGridView

扶醉桌前 提交于 2019-12-20 06:26:03
问题 I am trying to control two DataGridView's with only one of the DataGridView vertical scroll bars being visible. 回答1: protected void grid1_Scroll(object sender, ScrollEventArgs e) { grid2.VerticallScrollBar.Value = e.NewValue; } 回答2: If both DataGridView controls have equal number of rows, you can do the following. I am using this to compare two SQL resultsets side by side. Set Scroll event handlers on both controls. private void DataGridView1_Scroll(object sender, ScrollEventArgs e) {

Scroll bar of iOS web view change into half of it should be

浪子不回头ぞ 提交于 2019-12-20 05:52:19
问题 Using Xcode 5, iOS 7. Problems occurs after changing the frame of the web view from (0, 45, 320, 568 - 20 - 45 - 49) to (0, 0, 320, 568 - 20) or change it back, its superview is its container with a frame (0, 20, 320, 548) to the rootViewController of application window. When changing web view's frame back to (0, 45, 320, 568 - 20 - 45 - 49) to its container, web view is within 65 to (568 - 49) vertical area, but its scroll bar is scrolling from 65 to around middle of the web view. 回答1: A

Scroll bar of iOS web view change into half of it should be

冷暖自知 提交于 2019-12-20 05:52:07
问题 Using Xcode 5, iOS 7. Problems occurs after changing the frame of the web view from (0, 45, 320, 568 - 20 - 45 - 49) to (0, 0, 320, 568 - 20) or change it back, its superview is its container with a frame (0, 20, 320, 548) to the rootViewController of application window. When changing web view's frame back to (0, 45, 320, 568 - 20 - 45 - 49) to its container, web view is within 65 to (568 - 49) vertical area, but its scroll bar is scrolling from 65 to around middle of the web view. 回答1: A

Move the vertical scroll bar of a scroll panel to the left side

心不动则不痛 提交于 2019-12-20 04:38:13
问题 With JavaFX I want to move the vertical scroll bar of a scroll panel to the left side of the component, instead of the default right side. I tried to do it with -fx-alignment into CSS but not work. .scroll-pane .scroll-bar:vertical { -fx-alignment: LEFT; } 回答1: You could create a ScrollBar bind the ScrollBar properties to the relevant properties of the ScrollPane hide the ScrollBars of the ScrollPane Here's a quick draft: ExternalScrollbar.java import javafx.application.Application; import

add scrollbar to figure with subplots

↘锁芯ラ 提交于 2019-12-20 03:47:11
问题 I have a m-file which should show about 20 images in one figure. so now I would like to know how to add a scrollbar to the figure. currently, my code is doing something like this: figure('Name','Results'); for a=1:20 img_result = imread(userinput); %Process image; img_result . . . subplot(5,1,a); imshow(img_result); end if i am using this code the images are getting resized to small icons. any ideas? 回答1: I believe this is what you're looking for: Scrolling Figure Demo by Evan Brooks 来源:

Apply Border-Radius To Scrollbars With ::-webkit-scrollbar CSS3

为君一笑 提交于 2019-12-20 03:17:36
问题 Doesn't need to be cross-browser at the moment, just webkit. I'm familiar with the ::-webkit-scrollbar styling ability, but how can I use that or javascript to make the scrollbars respect the border-radius of elements? I've got A div with with border radius: #tagBox { border-radius: 20px; } #tagBox::-webkit-scrollbar-??? { ???: ??? } How can I make the scrollbars obey the border-radius of their element? Even if it requires javascript. (I've already tried the LionBars plugin and jScrollPane,