Changeset 22142
- Timestamp:
- 01/06/2008 11:27:57 AM (11 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Plugins/Dual Window Interface/AIMessageViewController.m
r22112 r22142 788 788 if ([NSApp isOnLeopardOrBetter]) { 789 789 //Attempt to maximize the message view's size. We'll automatically restrict it to the correct minimum via the NSSplitView's delegate methods. 790 [splitView_textEntryHorizontal setPosition:NSHeight([splitView_textEntryHorizontal frame]) 790 [splitView_textEntryHorizontal adjustSubviews]; 791 [splitView_textEntryHorizontal setPosition:(NSHeight([splitView_textEntryHorizontal frame]) - height) 791 792 ofDividerAtIndex:0]; 792 793 … … 829 830 //Our primary goal is to display all the entered text 830 831 height = [textView_outgoing desiredSize].height; 831 832 832 833 //But we must never fall below the user's prefered mininum or above the allowed height 833 if (!ignoreUserMininum && height < entryMinHeight) height = entryMinHeight; 834 if (!ignoreUserMininum && height < entryMinHeight) { 835 height = entryMinHeight; 836 } 834 837 if (height > allowedHeight) height = allowedHeight; 835 838 … … 1091 1094 - (float)splitView:(NSSplitView *)sender constrainMaxCoordinate:(float)proposedMax ofSubviewAt:(int)offset 1092 1095 { 1093 if (sender == splitView_textEntryHorizontal) { 1096 if (sender == splitView_textEntryHorizontal) { 1094 1097 return ([sender frame].size.height - ([self _textEntryViewProperHeightIgnoringUserMininum:YES] + 1095 1098 [sender dividerThickness])); … … 1125 1128 { 1126 1129 if (sender == splitView_textEntryHorizontal) { 1127 entryMinHeight = (int)([sender frame].size.height - (proposedPosition + [sender dividerThickness]));1130 entryMinHeight = (int)([sender frame].size.height - proposedPosition); 1128 1131 } else { 1129 1132 NSLog(@"Unknown split view %@",sender);