• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
printing gets shifted up off edge of page
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >printing nsscrollview gets shifted up off edge of page (From: Seth Delackner <email@hidden>)

  • Prev by Date: How to reply to Apple Events
  • Next by Date: Unsubscribe
  • Previous by thread: printing nsscrollview gets shifted up off edge of page
  • Next by thread: Problem with NSTreeController bindings.
  • Index(es):
    • Date
    • Thread