Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Within TUIStretchableImage, horizontalEdgeLength should be basd on si…

…ze.width, not size.height
  • Loading branch information...
commit 2711151cc3902f1097efd3ad7348ee3f1382d12d 1 parent 70bed0d
@jspahrsummers jspahrsummers authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/UIKit/TUIStretchableImage.m
View
2  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);
Please sign in to comment.
Something went wrong with that request. Please try again.