Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[models] Don't draw borders on selected cells in NICellBackgrounds.

  • Loading branch information...
commit aa5420aedc4270f6dd0dd625243306cedf7c3563 1 parent 9cfc490
@jverkoey authored
Showing with 2 additions and 8 deletions.
  1. +2 −8 src/models/src/NICellBackgrounds.m
View
10 src/models/src/NICellBackgrounds.m
@@ -321,13 +321,7 @@ - (UIImage *)_imageForFirst:(BOOL)first last:(BOOL)last highlighted:(BOOL)highli
}
CGContextSaveGState(cx);
- if (highlighted && !last) {
- CGRect noBorderContentFrame = NIRectContract(contentFrame, 0, 1);
- [self _applyPathToContext:cx rect:noBorderContentFrame isFirst:first isLast:last];
-
- } else {
- [self _applyPathToContext:cx rect:contentFrame isFirst:first isLast:last];
- }
+ [self _applyPathToContext:cx rect:contentFrame isFirst:first isLast:last];
CGContextFillPath(cx);
CGContextRestoreGState(cx);
@@ -361,7 +355,7 @@ - (UIImage *)_imageForFirst:(BOOL)first last:(BOOL)last highlighted:(BOOL)highli
}
// Draw the cell divider.
- if (!last) {
+ if (!highlighted && !last) {
CGContextSaveGState(cx);
CGContextSetLineWidth(cx, kBorderSize);
CGContextSetStrokeColorWithColor(cx, self.dividerColor.CGColor);
Please sign in to comment.
Something went wrong with that request. Please try again.