Skip to content

Commit e994425

Browse files
fourplusonemonkeydom
authored andcommitted
[FIX #143] Code won't unfold if textView has been scrolled (#144)
1 parent b2b4f53 commit e994425

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SubEthaEdit-Mac/Source/GutterRulerView.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ - (void)mouseDown:(NSEvent *)anEvent {
362362
NSRange lineRange=[text lineRangeForRange:NSMakeRange(characterIndex,0)];
363363
NSRange attributeRange = NSMakeRange(lineRange.location,0);
364364

365-
// transform bounding rect to point coordinates
366-
boundingRect = NSOffsetRect(boundingRect, 0, visibleRect.origin.y + textContainerInsetTopY);
365+
// transform bounding rect to view coordinates
366+
boundingRect = NSOffsetRect(boundingRect, 0, textContainerInsetTopY);
367367

368368

369369
// NSLog(@"%s bounds:%@ documentVisibleRect:%@",__FUNCTION__,NSStringFromRect([self bounds]),NSStringFromRect(visibleRect));

0 commit comments

Comments
 (0)