scroll

Prevent div scrolling up when bumped by div below it?

夙愿已清 提交于 2020-01-20 05:54:08
问题 I asked a similar question yesterday but explained it poorly, and didn't specify my desire for a pure-CSS solution, which I think should be possible, so I'm trying again. Basically, I have an issue where I have a div of scrollable messages and an input field below it. When I click a button, I would like the input field to be bumped up 100 pixels, without having the div of messages scroll as well. Here is a fiddle that demonstrates the problem in its entirety As you can see, when you click the

Automatically Scroll Page from Top to Bottom, then Back Up (and Repeat)

允我心安 提交于 2020-01-20 04:46:34
问题 I'm trying to figure out how to, upon pageload, automatically scroll to the bottom of a page (which has been described sufficiently here) and then scroll back up automatically upon reaching the bottom of the page. I can find the automatic scrolling to the bottom, but I can't figure out how to identify when I'm at the bottom of the page, and how to scroll back up when I am. I'd do this using generic Javascript (or JQuery). Thanks in advance! 回答1: Try this: http://jsfiddle.net/yjYJ4/ $('html,

Horizontal scroll winforms listview

自闭症网瘾萝莉.ら 提交于 2020-01-20 04:11:29
问题 Anyone know if its possible to enable horizontal scrolling ONLY in a windows forms listview (viewmode set to large icons). What I want to do is make a listview whose height is sufficient to only show one row of icons, and I don't want to have multiple rows. Just one very long row that a user would have to scroll horizontally to get to out-of-range icons. If I make the listview scrollable then it automatically makes multiple rows and puts in a vertical scrollbar, which I don't want. Thanks in

ListBox in TabControl scrolling issue

天涯浪子 提交于 2020-01-19 14:55:50
问题 I have an issue with WPF ListBox in TabControl. ListBox resets it's scrollbar position to 0 when I change tabs. Here is repro code: <TabControl x:Name="_tabs"> <TabItem Header="1"> <ListBox ItemsSource="{Binding}" ScrollViewer.VerticalScrollBarVisibility="Auto"/> </TabItem> <TabItem Header="2"> <ListBox ItemsSource="{Binding}" ScrollViewer.VerticalScrollBarVisibility="Auto"/> </TabItem> </TabControl> _tabs.DataContext = Enumerable.Range(1, 300).ToArray(); When the window opens I open the

ListBox in TabControl scrolling issue

本秂侑毒 提交于 2020-01-19 14:55:25
问题 I have an issue with WPF ListBox in TabControl. ListBox resets it's scrollbar position to 0 when I change tabs. Here is repro code: <TabControl x:Name="_tabs"> <TabItem Header="1"> <ListBox ItemsSource="{Binding}" ScrollViewer.VerticalScrollBarVisibility="Auto"/> </TabItem> <TabItem Header="2"> <ListBox ItemsSource="{Binding}" ScrollViewer.VerticalScrollBarVisibility="Auto"/> </TabItem> </TabControl> _tabs.DataContext = Enumerable.Range(1, 300).ToArray(); When the window opens I open the

Changing route doesn't scroll to top in the new page

假如想象 提交于 2020-01-18 11:12:47
问题 I've found some undesired, at least for me, behaviour when the route changes. In the step 11 of the tutorial http://angular.github.io/angular-phonecat/step-11/app/#/phones you can see the list of phones. If you scroll to the bottom and click on one of the latest, you can see that the scroll isn't at top, instead is kind of in the middle. I've found this in one of my apps too and I was wondering how can I get this to scroll to the top. I can do it mannually, but I think that there should be

Changing route doesn't scroll to top in the new page

Deadly 提交于 2020-01-18 11:12:33
问题 I've found some undesired, at least for me, behaviour when the route changes. In the step 11 of the tutorial http://angular.github.io/angular-phonecat/step-11/app/#/phones you can see the list of phones. If you scroll to the bottom and click on one of the latest, you can see that the scroll isn't at top, instead is kind of in the middle. I've found this in one of my apps too and I was wondering how can I get this to scroll to the top. I can do it mannually, but I think that there should be

Changing route doesn't scroll to top in the new page

此生再无相见时 提交于 2020-01-18 11:11:31
问题 I've found some undesired, at least for me, behaviour when the route changes. In the step 11 of the tutorial http://angular.github.io/angular-phonecat/step-11/app/#/phones you can see the list of phones. If you scroll to the bottom and click on one of the latest, you can see that the scroll isn't at top, instead is kind of in the middle. I've found this in one of my apps too and I was wondering how can I get this to scroll to the top. I can do it mannually, but I think that there should be

由浅及深学习 elasticSearch 原理

烈酒焚心 提交于 2020-01-18 02:26:54
第三节 ElasticSearch原理 3.1 解析es的分布式架构 3.1.1 分布式架构的透明隐藏特性 ElasticSearch是一个分布式系统,隐藏了复杂的处理机制 分片机制:我们不用关心数据是按照什么机制分片的、最后放入到哪个分片中 分片的副本: 集群发现机制(cluster discovery):比如当前我们启动了一个es进程,当启动了第二个es进程时,这个进程作为一个node自动就发现了集群,并且加入了进去 shard负载均衡:比如现在有10shard,集群中有3个节点,es会进行均衡的进行分配,以保持每个节点均衡的负载请求 请求路由 3.1.2 扩容机制 垂直扩容:购置新的机器,替换已有的机器 水平扩容:直接增加机器 3.1.3 rebalance 增加或减少节点时会自动均衡 3.1.4 master节点 主节点的主要职责是和集群操作相关的内容,如创建或删除索引,跟踪哪些节点是群集的一部分,并决定哪些分片分配给相关的节点。稳定的主节点对集群的健康是非常重要的。 3.1.5 节点对等 每个节点都能接收请求 每个节点接收到请求后都能把该请求路由到有相关数据的其它节点上 接收原始请求的节点负责采集数据并返回给客户端 3.2 分片和副本机制 1.index包含多个shard 2.每个shard都是一个最小工作单元,承载部分数据;每个shard都是一个lucene实例

Angular image zoom always in center

我怕爱的太早我们不能终老 提交于 2020-01-17 11:06:15
问题 I have the directive. There is zoom on scroll image and also you can drag image. I need, that image by default always be on the center (div or screen) and image also should be on center when you zoommed of your mouse wheel. Generally, center of image always should be on a center of screen (and you can drag image as before). var app = angular.module('app', []); app.directive('myDraggable', ['$document', '$timeout', function($document, $timeout) { return function(scope, element, attr) { var