• 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
Re: Resizing view content
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resizing view content


  • Subject: Re: Resizing view content
  • From: John Timmer <email@hidden>
  • Date: Wed, 22 Oct 2003 21:55:05 -0400

> Your suggestion to log is a good one though - I'll either log or debug and
> check both frame and bounds before and after scaling and see what's to be
> seen there, and hopefully get some ideas.

Things start with:
Frame size: width 719, height 7874
Bounds size: width 719, height 7874

The rescale causes:
Frame size: width 719, height 7874
Bounds size: width 1141.27, height 12498.4

So, it seems like the rescaling causes the bounds to expand while locking
the frame size, effectively shrinking the displayed view - makes some sense.

Oddly, doing:
[thePrintView setFrame: [thePrintView bounds]] ;
Keeps things unchanged:
Frame size: width 719, height 7874
Bounds size: width 1141.27, height 12498.4

Shrinking the frame to the size I need simply reproduces what happens
without resizing - since the bounds don't change, the view stays at full
size.

What I think I need to do is run the rescale and then shift the origin of
the bounds relative to the frame, then chop the frame height down. The
problem is that I can't quite figure out the geometry to get it right
(forgive me, for I am a biologist) - I can get the right numbers by trial
and error, but I can't quite figure out the math to make it a general
solution.

Any advice is appreciated,

John
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Resizing view content (From: John Timmer <email@hidden>)

  • Prev by Date: Re: The cocoaBB has launched!!!
  • Next by Date: Re: What is a screen saver allowed to do to the system state?
  • Previous by thread: Re: Resizing view content
  • Next by thread: Re: Resizing view content
  • Index(es):
    • Date
    • Thread