Questions tagged [contentoffset]

The point at which the origin of the content view is offset from the origin of the scroll view.

140 questions
0
votes
0 answers

offset problems in jquery, works on chrome but not in firefox

I'm using an anchor navigation on my website & a fixed header. by clicking on a link of my menu, the page scrolls to the linked #. I've added a JS code to calculate the height of my header and to add the height to my # link so it the section is not…
mmdwc
  • 1,095
  • 6
  • 27
  • 53
0
votes
1 answer

scrollup uitablviewcell partially visible

I need some help. That i want to scrollup uitalbeview cell which is partially displaying.See screen shot. Here my tableview has a three section and u can see that in morning section the row is displaying partially.I just want to move up that kind…
utkal patel
  • 1,321
  • 1
  • 15
  • 24
0
votes
1 answer

How can I find the x coordinate of the contentView that is equal to the center x of a UIScrollView's frame

I have a UIScrollView that scrolls horizontally. I have about 10 views lined up horizontally in that scrollview. I want to find the view that contains the center point of the scrollview's frame (not contentView.frame) as it scrolls. I am thinking…
SirRupertIII
  • 12,324
  • 20
  • 72
  • 121
0
votes
2 answers

How to get Character Offset from div

I have a div with "contenteditable = true". For ex:

fggggdf
How to get the character offset(for example character 'd' offset) with respect to the div "editableDiv". Thanks in advance
Basavaraj Metri
  • 836
  • 1
  • 14
  • 27
0
votes
1 answer

iOS - ContentOffset stays the same after changing size of UIScrollView

I have an UIScrollView which have some content. My problem is that after I've changed the height of the scrollView, the contentOffset stays the same and therefore not showing the content it was previosly displaying. For example, my scrollView have…
Jonas
  • 1,112
  • 5
  • 17
  • 28
0
votes
1 answer

How to get coordinates

I have UIWebView for displaying HTML contents. I'm getting touch coordinates from UIWebView using Longpress gesture. If i get coordinate value from UIWebView x = 146.5 and y = 230.67. I stored these value to database. Later when i load the UIWebView…
user2967559
  • 97
  • 2
  • 13
0
votes
1 answer

UIScrollView contenOffset and setContentSize?

I have a scrollview that holds many of UIView. UIView objects are added/deleted to/from scrollview dynamically and its contentSize is changed also. My problem is, if the setContentSize changes, its contentOffset automatically changes and when I…
erdemgc
  • 125
  • 1
  • 9
0
votes
1 answer

WebView scrolls itself

I've got a UITextField added as a subview to a UIWebView that acts as an address bar for a browser. But it's behaving rather strangely, because when the field begins editing the webView automatically scrolls itself to about (-40, 0) and I can't…
JohnWickham
  • 571
  • 1
  • 6
  • 15
0
votes
0 answers

Update Height of UIImageview on scrolling UITableView

I've got an UIImageView and in the same view I've got an UITableView. I need to get the scroll y movement and the movement should update the height of UIImageView. So if I scroll up the UITableView, the UIImage should reduce the height, if I scroll…
Bellots
  • 1,703
  • 3
  • 19
  • 29
0
votes
1 answer

iOS UITableView programmatically scroll all content off screen causes choppiness on retina device

I have a UITableView that I want to have a scrolling effect through all cells in the table and then move all content off the screen and then animate the return off the first cell. I'm doing this animation as a clearing method for all the content in…
whittwuli
  • 231
  • 1
  • 3
  • 9
0
votes
2 answers

How to perform action "if content offset is greater than..."

I've looked absolutely everywhere for hours and can't find a solution that works for me. All I'm trying to do is make my app do something when the position of the content in the uiscrollview is above a certain position and below another position. I…
Invalid Memory
  • 717
  • 7
  • 23
0
votes
6 answers

Scrolling off UISearchBar in a UICollectionView by default

I'm working on a project that uses a UICollectionView (PSUICollectionView actually) and I've added a UISearchBar at the top of this collection view. What I now wanna do is to scroll off this search bar by default until the user pulls it down. This…
amit
  • 1
  • 2
0
votes
0 answers

Content offset resets on scroll of UIScrollView

I want to be able to show part of the header view of a table when the user pulls down the tableview to make it visible. Similarly, I want to hide it when the user pushes the header out of view. To do this I have set a content inset to hide the top…
Adam Carter
  • 4,741
  • 5
  • 42
  • 103
0
votes
2 answers

iOS: SetContentOffset for Scrollview doesn't work

I have 3 Scrollviews and they should scroll synchron with the other... But this code doesn't work: - (void)scrollViewDidScroll:(UIScrollView *)scrollView { [rowIdCellScrollView setContentOffset:CGPointMake(0,…
user1199624
0
votes
2 answers

Contentoffset for Tapped imageview in scrollview

I am trying to save the tapped image to a photo album, using contentOffset to detect which image object is tapped to save, but it always saves the last imageObject instead. Here is how I try to calculate contentOffset for tapped image view in…
user1452248
  • 767
  • 2
  • 11
  • 28
1 2 3
9
10