changeset: 4434:4e5dd7dc58cd
tag: tip user: Jjgod Jiang <gzjjgod@gmail.com> date: Fri Apr 16 13:20:33 2010 +0800 summary: Fix window height calculation for text input rect
This commit is contained in:
parent
fc440f959f
commit
5740f12d7b
1 changed files with 3 additions and 1 deletions
|
@ -155,7 +155,9 @@
|
|||
|
||||
- (NSRect) firstRectForCharacterRange: (NSRange) theRange
|
||||
{
|
||||
float windowHeight = [[self window] frame].size.height;
|
||||
NSWindow *window = [self window];
|
||||
NSRect contentRect = [window contentRectForFrameRect: [window frame]];
|
||||
float windowHeight = contentRect.size.height;
|
||||
NSRect rect = NSMakeRect(_inputRect.x, windowHeight - _inputRect.y - _inputRect.h,
|
||||
_inputRect.w, _inputRect.h);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue