prune some whitespace from inline edit box
This commit is contained in:
Родитель
6b9b5853a9
Коммит
28506ec38b
|
@ -91,6 +91,12 @@
|
|||
- (void)selectWithFrame:(NSRect)aRect inView:(NSView *)controlView editor:(NSText *)textObj delegate:(id)anObject start:(int)selStart length:(int)selLength {
|
||||
NSRect textFrame, imageFrame;
|
||||
NSDivideRect (aRect, &imageFrame, &textFrame, 3 + [image size].width, NSMinXEdge);
|
||||
|
||||
// adjust so things line up better. not perfect but |textObj| won't tell me
|
||||
// enough about the font used to get the lineheight.
|
||||
textFrame.size.height -= 2;
|
||||
textFrame.origin.y++;
|
||||
|
||||
[super selectWithFrame: textFrame inView: controlView editor:textObj delegate:anObject start:selStart length:selLength];
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче