scrolling

Coordinate transformation in SVG inside Firefox with scrollbars

I am trying to calculate the correct mouse coordinates, in user coordinate space, in an SVG document from within Javascript code when scrollbars come into existence when that SVG file is viewed from within FireFox. But it is not quite correct. This is needed to get SVG-based tooltips drawn correctly even when the SVG is scrolled horizont...

How to create ScrollBar for SWF file..

Hi guys.. I am trying to build a AS3 only project and I ran into a problem that when I turn some MC's visible on...they are out of my browser window and there is no scrollBar for browser to scroll down.....Are there anyways around this?? Thanks for the reply... ...

Scrolling the window during a jQuery animation

When the user clicks a certain button at the bottom of the site I am working on, it expands into a comment form. If there is a lot of other content on the page, the comment form will expand below the fold and the user might not notice that it has appeared. I would like to scroll the page down as the comment form expands to draw the user...

Scrolling Background

I'm trying out new things for a simple game in Portrait mode, I want to add a seamless scrolling background to a game, the image is 512x512px. The Main scrolling I want to have is Vertically, but I want to be able to scroll sideways too within the bounds of the image size. How should I go about with this, I'm using cocos2d. David ...

UITableView: scrolling programmatically the content view

Hi i'm trying to forward the touches I receive from an UIView which is in front of an UITableView. But doins so I can't make the table scroll anymore (see here). So now I'm trying to make tha tableview scroll programmatically and I am looking at setContentOffset:animated: and scrollRectToVisible:animated: with having success only with t...

UIScrollView redrawing content while scrolling?

I know there is a property or method that makes the scrollview/uiview call drawRect: method while is scrolling. By default is disabled because of performance reasons but I need to enable it. I cannot remember the name of the method hence I cannot look for it, anyone who knows what I am looking for? Thanks in advance ...

How to implement a horizontal image gallery in blackberry, like a carousel or springboard in iPhone.

I would like to create a blackberry component which has the following capabilities: Horizontal scrolling of various image fields much like a carousel/springboard interface. Circular dots as indicators for the image that's focused on, located at the bottom. When user swipes or slides the images left or right, the next image that's in t...

Get <div> to resize when users resizes browser

I want a div's width and height to change with the browser as the browser's width and height are changed when a user changes their browses dimensions. Code added based on the answers suggestion <!doctype html> <html> <head> <link rel="shortcut icon" href="/favicon.ico"> <meta charset='UTF-8'> <%= stylesheet_link_tag 'a...

Group should scroll vertically but is expanding to infinite in width

I have a group for which I want to enable horizontal scrolling. Vertically the group should be as wide as possible (100%). <s:Scroller left="0" right="0" top="0" bottom="0" visible="{isVisible}" horizontalScrollPolicy="off" includeIn="stateA"> <comps:MyComp horizontalScrollPosition="0" verticalSc...

jQuery gentle scroll

Hi there - due to the nature of my site, I often have to link to anchors listed within a page, rather than just to the page itself. An example can be found here: http://www.unknowntales.net/chapter/route/choice/#chapter3 What I'm looking for is some jQuery code which I can use to make the page slowly scroll down to the anchor, rather th...

Scrolling to an item in a list

I have a list of elements I would like to be able to have brought into focus when the user is selecting items. I've tried calling .focus() with Jquery on these objects to no avail. Is there anything I'm missing? :) EDIT: I have a list (ul) of elements. I shift click on a starting item and and press the arrow keys to continue selecting. ...

How to force a scrollbar to scroll a canvas

Hi I was wondering if there is any way to force a scrollbar to scroll a canvas. I placed canvas in scrollview and I overrode the measureoverride method. Scrollbars show when I reach the ends of visible parts of the canvas. However I would like the canvas to scroll because now, despite the fact that scrollbars show, the canvas does not f...

how to stop NSScrollView from scrolling on resize?

I'm writing a PDFViewer for a 3rd party PDF library. I have a subclass of NSScrollView and a subclass of NSView. The problem is the NSScrollView will scroll up and down when I resize window. here is the relevant code: whenever windows is resized, my subclass of NSScrollView receive this message: -(void)handleFrameChange:(NSNotificatio...

Android How to know if a Gallery is scrolling ?

Hi, I have a gallery and when a image is selected, I want to start new thread (for loading other images). But I don't want to do it while the gallery is scrolling. How can I know the state of the gallery and if it is still scrolling? I can't use "setCallbackDuringFling(false)" because I have a textview under the image that has to be upd...

How do I scroll a window in Firefox that does not have scrollbars?

We have some pages that we are developing that are pop ups. We disable the scroll bars in general for these pop ups. However, during development there is some debugging info that shows up past the view port which we cannot get to because the page does not have scroll bars. In IE we can click and drag and that will scroll the window but...

What is the right solution for dragging elements in container with vertical scrolling?

I have container (VBox). It contains certain child elements (for example, other Vbox). Container has vertical scrollbar. When I start dragging certain child, verticall scrolling is not working, why? I resolved this problem using container's dragOver event. But in Flex 4 I use VGroup as container, and there is not maxVerticalScrollPosi...

Vim scrolling without changing cursors on-screen position

When cursor is at middle of screen and i scroll down, the cursor moves upwards on the screen. I don't want it to do that. How can i scroll without changing cursors on-screen position? Solution, added after answer: noremap <C-k> 14j14<C-e> noremap <C-l> 14k14<C-y> ...

auto-scrolling TextView in android to bring text into view

I have a TextView that I'm dynamically adding text to. in my main.xml file I have the properties set to make my max lines 19 and scrollbars vertical. in the .java file I am using textview.setMovementMethod(new ScrollingMovementMethod()); to allow for scrolling. The scrolling works great. As soon as 19 lines are taken up, and more lin...

Can I stop the RowHeaders in Microsoft WPF DataGrid from scrolling, when I have frozen columns?

I have a few frozen columns in my WPF DataGrid. When I scroll, horizontally, the RowHeader is also scrolling, instead of staying frozen. Is there something I can do to keep it from scrolling horizontally? I can provide more information if needed. ...

Out of control ListView

I'm having a problem with a ListActivity. I've extended ArrayAdapter and Overridden getView to fill in the data for each row. I throw some data from my Adapter's ArrayList into a TextView. My problem is, when I scroll, the TextView of each row populates with text that is not in its corresponding data in the ArrayList. What I mean is:...