comparison mac/dw.m @ 924:8a8d2699bd09

Temporary fix for redraw issue in a notebook and other sub-controls.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 22 Apr 2011 13:21:48 +0000
parents 0ac67b62b594
children e8c5bcf7846d
comparison
equal deleted inserted replaced
923:0ac67b62b594 924:8a8d2699bd09
956 { 956 {
957 DWBox *view = object; 957 DWBox *view = object;
958 Box *box = [view box]; 958 Box *box = [view box];
959 NSSize size = [view frame].size; 959 NSSize size = [view frame].size;
960 _do_resize(box, size.width, size.height); 960 _do_resize(box, size.width, size.height);
961 _do_resize(box, size.width, size.height);
961 _handle_resize_events(box); 962 _handle_resize_events(box);
962 } 963 }
963 _event_handler(self, (void *)[page pageid], 15); 964 _event_handler(self, (void *)[page pageid], 15);
964 } 965 }
965 -(void)dealloc { UserData *root = userdata; _remove_userdata(&root, NULL, TRUE); [super dealloc]; } 966 -(void)dealloc { UserData *root = userdata; _remove_userdata(&root, NULL, TRUE); [super dealloc]; }
1018 if([object isMemberOfClass:[DWBox class]]) 1019 if([object isMemberOfClass:[DWBox class]])
1019 { 1020 {
1020 DWBox *view = object; 1021 DWBox *view = object;
1021 Box *box = [view box]; 1022 Box *box = [view box];
1022 NSSize size = [view frame].size; 1023 NSSize size = [view frame].size;
1024 _do_resize(box, size.width, size.height);
1023 _do_resize(box, size.width, size.height); 1025 _do_resize(box, size.width, size.height);
1024 _handle_resize_events(box); 1026 _handle_resize_events(box);
1025 } 1027 }
1026 } 1028 }
1027 } 1029 }
2342 if(view != nil) 2344 if(view != nil)
2343 { 2345 {
2344 Box *box = [view box]; 2346 Box *box = [view box];
2345 NSSize size = [view frame].size; 2347 NSSize size = [view frame].size;
2346 _do_resize(box, size.width, size.height); 2348 _do_resize(box, size.width, size.height);
2349 _do_resize(box, size.width, size.height);
2347 _handle_resize_events(box); 2350 _handle_resize_events(box);
2348 } 2351 }
2349 } 2352 }
2350 /* Handle laying out scrollviews... if required space is less 2353 /* Handle laying out scrollviews... if required space is less
2351 * than available space, then expand. Otherwise use required space. 2354 * than available space, then expand. Otherwise use required space.