HSImageSidebarView icon indicating copy to clipboard operation
HSImageSidebarView copied to clipboard

horizontal scrolling

Open sdivekar opened this issue 12 years ago • 7 comments

Hi,

How do I use this to do horizontal scrolling? I interchanged the width and height of the "Image Sidebar View" in the sample, but it does not show up.

Can you please help?

Thanks, DS

sdivekar avatar Mar 17 '12 13:03 sdivekar

My intention was that if the view is wider than it is tall, than it should automatically use horizontal scrolling. Are you not seeing that behavior?

bjhomer avatar Mar 18 '12 22:03 bjhomer

I do not see that. Any thoughts?

On Mar 18, 2012, at 6:01 PM, BJ Homer [email protected] wrote:

My intention was that if the view is wider than it is tall, than it should automatically use horizontal scrolling. Are you not seeing that behavior?


Reply to this email directly or view it on GitHub: https://github.com/bjhomer/HSImageSidebarView/issues/7#issuecomment-4564857

sdivekar avatar Mar 18 '12 23:03 sdivekar

I've just tested it, and it's definitely scrolling horizontally for me.

One thing to note is that the detection for horizontal/vertical mode currently happens upon initialization. That is, if you have a vertical sidebar in your xib, and then change its frame to be horizontal in code at some later point, it will be too late, as the orientation will have already been fixed upon initialization.

That's probably something that could stand to be improved, but for now, that's how it is.

bjhomer avatar Mar 19 '12 16:03 bjhomer

Hi, For me, horizontal scrolling is working only in portrait orientation. In landscape orientation scrolling seems to be disabled. Any thoughts ?

Thanks in advance Cy

cyrilepinat avatar Jul 02 '12 15:07 cyrilepinat

+1 horizontal scrolling is not working

swapped the width and height, and debugged to check if the isHorizontal is YES, and sure enough it is. But it's not even firing the scrollViewDidScroll

any thoughts ?

a-ayyash avatar Oct 19 '12 12:10 a-ayyash

I'll look into this

bjhomer avatar Oct 22 '12 21:10 bjhomer

first of all, Thank you for your work ^_^ and secondly I think I figured out what's causing this, laziness.

what I did and I assume what people did before me, is directly resizing the example's UIView hoping that it will pick it up automagically, it does that but the autoresizing masks are already messed up.

sorry for not updating earlier.

a-ayyash avatar Oct 22 '12 22:10 a-ayyash