diff options
author | Kevin Walzer <kw@codebykevin.com> | 2014-07-28 02:44:57 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2014-07-28 02:44:57 (GMT) |
commit | c5695e766b9c40219e9280af36c65998d30e6eb7 (patch) | |
tree | 641ce1d6fc66d418ec040244ff78297e680f97c8 /macosx/tkMacOSXScrlbr.c | |
parent | 42ed9ac756fe0fedb878602d401c858c0117ea22 (diff) | |
download | tk-c5695e766b9c40219e9280af36c65998d30e6eb7.zip tk-c5695e766b9c40219e9280af36c65998d30e6eb7.tar.gz tk-c5695e766b9c40219e9280af36c65998d30e6eb7.tar.bz2 |
Fine-tune scrolling, especially of text widgets with embedded windows, after removal of private API calls; performance is now better and within acceptable ranges.
Diffstat (limited to 'macosx/tkMacOSXScrlbr.c')
-rw-r--r-- | macosx/tkMacOSXScrlbr.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/macosx/tkMacOSXScrlbr.c b/macosx/tkMacOSXScrlbr.c index b8c73bd..0b4fa61 100644 --- a/macosx/tkMacOSXScrlbr.c +++ b/macosx/tkMacOSXScrlbr.c @@ -331,26 +331,6 @@ TkpDisplayScrollbar( frame = NSInsetRect(frame, scrollPtr->inset, scrollPtr->inset); frame.origin.y = viewHeight - (frame.origin.y + frame.size.height); - NSWindow *w = [view window]; - - //This uses a private API call that is no longer needed on systems >= 10.7. - #if 0 - if ([w showsResizeIndicator]) { - NSRect growBox = [view convertRect:[w _growBoxRect] fromView:nil]; - - if (NSIntersectsRect(growBox, frame)) { - if (scrollPtr->vertical) { - CGFloat y = frame.origin.y; - - frame.origin.y = growBox.origin.y + growBox.size.height; - frame.size.height -= frame.origin.y - y; - } else { - frame.size.width = growBox.origin.x - frame.origin.x; - } - TkMacOSXSetScrollbarGrow(winPtr, true); - } - } - #endif if (!NSEqualRects(frame, [scroller frame])) { [scroller setFrame:frame]; } |