Permalink
Browse files

Within TUIStretchableImage, horizontalEdgeLength should be basd on si…

…ze.width, not size.height
  • Loading branch information...
1 parent 70bed0d commit 2711151cc3902f1097efd3ad7348ee3f1382d12d @jspahrsummers jspahrsummers committed Jul 30, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/UIKit/TUIStretchableImage.m
@@ -66,7 +66,7 @@ - (void)drawInRect:(NSRect)dstRect fromRect:(NSRect)srcRect operation:(NSComposi
CGFloat verticalEdgeLength = fmax(0, size.height - insets.top - insets.bottom);
// Length of sides that run horizontally.
- CGFloat horizontalEdgeLength = fmax(0, size.height - insets.left - insets.right);
+ CGFloat horizontalEdgeLength = fmax(0, size.width - insets.left - insets.right);
NSImage *(^imageWithRect)(CGRect) = ^ id (CGRect rect){
CGImageRef part = CGImageCreateWithImageInRect(image, rect);

0 comments on commit 2711151

Please sign in to comment.