printing nsscrollview gets shifted up off edge of page
printing nsscrollview gets shifted up off edge of page
- Subject: printing nsscrollview gets shifted up off edge of page
- From: Seth Delackner <email@hidden>
- Date: Mon, 15 Aug 2005 20:30:26 +0000
- Mail-followup-to: email@hidden
We have a document-based application where we manage
pagination ourselves with all content in series of subviews
of a single NSView, contained in an NSScrollView, a pretty
standard setup. Our drawing code is thus essentially nearly
the same for both printing and on screen drawing, with a few
conditionals to hide screen-oriented things like selection
rectangles.
Inside the main document view is, per page, a main body
textView and a header and footer textView.
Strangely, if we make the footer view larger than roughly 1
inch, the entire content of the page is shifted up off the
top edge of the page. The amount it is shifted is not
clearly related to how large the footer view is, as I
measured and it the ratio of footer height / amount chopped
off the top diminishes as the height increases.
Logging the rect being passed to our document view on
-drawRect, I see that the rect it is being told to draw is
indeed different during printing and on screen drawing, but
a) is that normal, b) why?
Any ideas? I know this is pretty vague, but it is so odd
I'm not sure what the culprit could be.
_______________________________________________
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