diff options
Diffstat (limited to 'src/ScintillaBase.cxx')
| -rw-r--r-- | src/ScintillaBase.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index f9d70ce53..43284f177 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -449,12 +449,12 @@ void ScintillaBase::CallTipShow(Point pt, const char *defn) {  	PRectangle rcClient = GetClientRectangle();  	int offset = vs.lineHeight + static_cast<int>(rc.Height());  	// adjust so it displays above the text. -	if (rc.bottom > rcClient.bottom) { +	if (rc.bottom > rcClient.bottom && rc.Height() < rcClient.Height()) {  		rc.top -= offset;  		rc.bottom -= offset;  	}  	// adjust so it displays below the text. -	if (rc.top < rcClient.top) { +	if (rc.top < rcClient.top && rc.Height() < rcClient.Height()) {  		rc.top += offset;  		rc.bottom += offset;  	}  | 
