diff options
author | Abhi Beckert <abhi@abhibeckert.com> | 2016-03-04 16:59:40 +1000 |
---|---|---|
committer | Abhi Beckert <abhi@abhibeckert.com> | 2016-03-04 16:59:40 +1000 |
commit | 49cc4d168902782b7be123dbefc8426ec11be2e2 (patch) | |
tree | 8525c931910a5ebb920cc02252f39b42ef5d963c /Source | |
parent | 0ac1ebf15c11f4b283a3d8a001b41f568c491876 (diff) | |
parent | cbbd6e05d65015d26f90e001cabcc5857c9b2134 (diff) | |
download | sequelpro-49cc4d168902782b7be123dbefc8426ec11be2e2.tar.gz sequelpro-49cc4d168902782b7be123dbefc8426ec11be2e2.tar.bz2 sequelpro-49cc4d168902782b7be123dbefc8426ec11be2e2.zip |
Merge pull request #2425 from bamse16/master
Converted tests to XCTest
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPComboPopupButton.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPComboPopupButton.m b/Source/SPComboPopupButton.m index 8c090911..3df3d6ec 100644 --- a/Source/SPComboPopupButton.m +++ b/Source/SPComboPopupButton.m @@ -129,9 +129,9 @@ CGContextSaveGState(context); CGContextSetStrokeColor(context, lineColorParts); - CGContextAddRect(context, CGRectMake(boundingLinePosition - 0.5, boundsRect.origin.y + heightIndent, 1.f, boundsRect.size.height - abs(2 * heightIndent))); + CGContextAddRect(context, CGRectMake(boundingLinePosition - 0.5, boundsRect.origin.y + heightIndent, 1.f, boundsRect.size.height - fabs(2 * heightIndent))); CGContextClip(context); - CGContextDrawLinearGradient(context, lineGradient, CGPointMake(boundingLinePosition - 0.5, boundsRect.origin.y + heightIndent), CGPointMake(boundingLinePosition - 0.5, boundsRect.origin.y + boundsRect.size.height - abs(heightIndent)), 0); + CGContextDrawLinearGradient(context, lineGradient, CGPointMake(boundingLinePosition - 0.5, boundsRect.origin.y + heightIndent), CGPointMake(boundingLinePosition - 0.5, boundsRect.origin.y + boundsRect.size.height - fabs(heightIndent)), 0); CGContextRestoreGState(context); CGGradientRelease(lineGradient); @@ -281,7 +281,7 @@ // Custom tracking to be performed - indent the vertical button area slightly - activeRect = NSMakeRect(cellFrame.origin.x, cellFrame.origin.y + heightIndent, cellFrame.size.width - [(SPComboPopupButton *)controlView lineOffset] + 1, cellFrame.size.height - fabsf(2 * heightIndent)); + activeRect = NSMakeRect(cellFrame.origin.x, cellFrame.origin.y + heightIndent, cellFrame.size.width - [(SPComboPopupButton *)controlView lineOffset] + 1, cellFrame.size.height - fabs(2 * heightIndent)); // Continue tracking the mouse while it's down, updating the state as it enters and leaves the cell, // until it is released; if still within the cell, perform a click. |