scroll

jQuery UI droppables in overflow scroll containers

Hi I did ask this question already at the jQuery forums, but they are not as active as here. I have encountered a problem when I have multiple droppable areas on a page. I have a 'static' droppable area that will never move, above a div that has multiple droppable areas and can scroll (overflow: scroll). When I scroll the div so that...

jQuery slider go back to front slider when reached end of slider?

jQuery slider go back to front slider when reached end of slider? Process: I load an HTML on a div with Ajax when it reaches the end of slider scroll. I want the slider to go back to front (starting point) when the process above executes. ...

HorizontalScrollView shrinks GridView to small line.

When I put a HorizontalScrollView around a GridView, the GridView gets compressed into a small column on the left. The Gridview's vertical scrollbar even appears on the left. The HorizontalScrollView's width is set to fill_parent and the GridView is also fill_parent. I don't know why this is happening. I tried setting the GridView's vis...

scroll tabs in flex 3

Hi, I need to make a tab navigator in flex3. If no. of tabs increases then i need to show scrollbar to navigate over the tabs. I am trying to do this using tabBar. But if no. of tab increases it puts scrollbar around the parent of tabBar and its content. Whereas i need to scroll only tabs not its content like in firefox. Could anybody...

How to scroll to top of a div using jquery?

I have a gridview inside a div... I want to scroll to top of the div from the bottom of the div using jquery... Any suggestion.... <div id="GridDiv"> // gridview inside... </div> My gridview will have custom pagination generated linkbuttons in it... I will scroll to top of the div from the bottom on the link button click ... protecte...

UITableView cannot scroll

Hello all, I created a very simple view trying to combine a navigation controller and table view together: .h interface FileView : UIView { UINavigationController * _nav; UITableViewController * _tableView; } .m - (id)initWithFrame:(CGRect)frame { if (self = [super initWithFrame:frame]) { _tableView = [[FileTable...

Error when using scrollHeight to determine if at bottom of a div

Found a great tip from Ca Phun Ung about determining if I'm at the bottom of a div: http://yelotofu.com/2008/10/jquery-how-to-tell-if-youre-scroll-to-bottom/ var elem = $('#box'); if (elem[0].scrollHeight - elem.scrollTop() == elem.outerHeight()) { // We're at the bottom. } Works well in FF and Safari, of course, but I have one err...

Issue with jquery scroll event in Firefox not being fluid enough

I have a div with content and overflow assigned giving it two scroll bars. On the inside of that div is another one which needs to be anchored to the bottom at all times. To achieve this, I put a listener on the scroll event to reposition the div at the bottom of the div: obj.scroll(function(e) { var uiValue = obj.scrollTop(); ...

Cross-Browser Method to Determine Vertical Scroll Percentage in Javascript

How can I find out what percentage of the vertical scrollbar a user has moved through at any given point? It's easy enough to trap the 'onscroll' event to fire when the user scrolls down the page, but how do I find out within that event how far they have scrolled? In this case, the percentage particularly is what's important. I'm not ...

Dynamic Jquery Tabs

I am building a site here but having a problem with linking to pages. This site is a one pager site that has a menue and a javascript that triggers it. Not if you visit the link I wanted to link the 3 green boxes to level1,level2,level3 like the main menu. But having a problem on how to do it. here is the code for the Top Menu <div cla...

Adding view to bottom of layout inside a scrollview

So my layout looks basically like this: <ScrollView> <RelativeLayout> <BunchOfViews/> <ImageView android:layout_alignParentBottom="true"/> </RelativeLayout> </ScrollView> I have the ScrollView so all of the layout always is visible no matter the height of the screen. The problem is that on a very high screen, I...

CSS- background color doesn't fill to top of scrolling div

I have a div (sub area of page with scroll bar) that has some text, an image and a table. The background color defined for the div - <div style="background-color: white"> does not fill the area to the top, the top arrow of the scroll bar is above the area filled with the background color (by about the width of one line). Adding a br ...

How can I set the scroll area and origin on a UserControl with AutoScroll ?

:) My question is quite a mouthful. This is a WinForms question : I'm making a UserControl where the mouse wheel is used for zooming and the content would be drawn using GDI+. After I activate AutoScroll, how can I set the area size and origin of the scroll view ? Thank in advance for any help. ...

jQuery UI sortable scroll helper element offset Firefox issue

I have a problem with a jQuery UI 1.7.2 sortable list in Firefox 3.6, IE7-8 work fine. When I'm scrolled down a bit, the helper element seems to have an offset of the same height that I'm scrolled down from the mouse pointer which makes it impossible to see which item you originally started dragging. How do I fix this or work around the ...

Mouse wheel not scrolling in JDialog but working in JFrame

Hello, I'm facing a frustrating issue. I have an application where the scroll wheel doesn't work in a JDialog window (but works in a JFrame). Here's the code: import javax.swing.*; import java.awt.event.*; public class Failtest extends JFrame { public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() {...

Vertical scrolling in silverlight

I have a silverlight application that is set to use 100% browser height. As I dynamically add controls to a canvas (which can be dragged around), I would like the expand the canvas vertically. Ideally show the browser scrollbar so the user can move up or down, if that can't be done, use the scrollbar control. I would also need to han...

What is the best method for implementing mouse wheel activity in Delphi VCL forms?

As a long time user of Delphi 7, I've rolled my own mouse wheel handling in a few controls but lately I've noticed that some recent applications only need the mouse cursor to be placed over a control (e.g. a list box or tree view) for the mouse wheel activity to cause that control to scroll. This feels nice (as opposed to having to click...

Scroll DIV Horizontally with Mouse Events

I have a layout as follows: <div style="width: 300"> <div style="width: 300">Some Content</div> </div I want to be able to mousedown in the content DIV and be able to move it left to right, or scroll it in other words :) What would be the best way of being this? I would prefer it in JavaScript mainly :) ...

Android: how to tell if a view is scrolling

in iPhone, this would be simple---each view has a scrollViewDidScroll method. I am trying to find the equivalent in Android. My code works, but it isn't giving me what I want. I need to execute code the entire duration that a view is scrolling. So, even though I use OnGestureListener's onScroll method, it only fires when the finger is o...

Synchronize the position of two ScrollView views

I am trying to synchronize the positions of two ScrollViews. I'm trying to do this to display a tv guide listing. I have created a custom class that extends RelativeLayout to display the guide. This relative layout has four children: an imageview in the top left corner, a HorizontalScrollView to display the column headers in the top r...