Resizing problem in PDFView sample
Resizing problem in PDFView sample
- Subject: Resizing problem in PDFView sample
- From: Joel Norvell <email@hidden>
- Date: Sat, 14 Oct 2006 02:42:08 -0700 (PDT)
Dear Coco-dev People,
When you launch the PDFView sample program, it displays a (pdf) document as
you'd expect, with the top of the document visible at the top of the window.
However, if you drag the bottom-right corner of the window upward, resizing it
by decreasing its height, the bottom of the original window remains visible,
and the document scrolls upward. This is the opposite of what I expected.
What would I have to do to make PDFView resize "normally"?
By "normally," I mean that resizing the window would either reveal more of the
document as the window grew, or clip the bottom of the document as it shrank,
but the document would not scroll.
In an interesting "twist", if you flip the PDFImageView:
- (BOOL)isFlipped
{
return YES;
}
it will resize "normally," but the image is displayed upside down and
backwards.
I've looked in "Cocoa Programming" and read the "Scroll View Programming Guide
for Cocoa." I've searched the Cocoa-dev archives (with terms like: flip,
flipped, NSScrollView, resizing). This problem has been discussed previously,
but I didn't see a solution.
Sincere thanks.
Joel Norvell
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden