| Sign In/My Account | View Cart |
| Article: |
Working With Bitmap Images; Document-Based Application Redux | |
| Subject: | validateScrollers question | |
| Date: | 2002-05-05 04:42:15 | |
| From: | sjmiller | |
|
As written, validateScrollers does not immediately remove the scrollers if the image is rescaled to fit within the current window. The area occupied by the scrollers is not updated. I partially fixed this by adding the following line to validateScrollers:
|
||
Showing messages 1 through 2 of 2.
[view validateScrollers];
to your scaleImageTo: method.
so it basically looks like:
- (void)scaleImageTo:(float)_scale
{
if(_scale>0)
scale=_scale;
[view scaleFrameBy:scale];
[zoomControl setFloatValue:(scale*100)];
[view validateScrollers];
}
it works great for me.
stupidFish23