printing gets shifted up off edge of page
printing gets shifted up off edge of page
- Subject: printing gets shifted up off edge of page
- From: Seth Delackner <email@hidden>
- Date: Tue, 16 Aug 2005 11:23:23 +0000
- Mail-followup-to: email@hidden
For a sample document I'm printing, I determined that the
main view is shifted up about 110 pixels. So I tried
experimenting by applying a translation of 110 y to the
graphics context, and that at least forced everything except
the NSTextView in the main view to draw in the right place.
I then looked at the output of -[nsview
beginPageInRect:atPlacement] and we have our first real
lead. The parameters are: {{-306.5, 5}, {612, 792}}
atPlacement: {0, 115.45}.
It gets the first parameter from our main view's
rectForPage:, which returns {-306.5, 5} as the origin. I
don't understand why it is deciding to shift that up by 100.
If I massage the y origin back to 5 before passing on to
super, it still draws shifted 100 up off the top of the page
edge.
_______________________________________________
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