Skip to content

Commit 1d887ac

Browse files
committed
Reverted the last change.
1 parent 3b3800b commit 1d887ac

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

framework/Source/CPTTextLayer.m

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,10 @@ -(CGSize)sizeThatFits
328328
}
329329

330330
// Add small margin
331-
CGFloat margin = kCPTTextLayerMarginWidth * CPTFloat(2.0) * self.contentsScale;
332-
333-
textSize.width += margin;
331+
textSize.width += kCPTTextLayerMarginWidth * CPTFloat(2.0);
334332
textSize.width = ceil(textSize.width);
335333

336-
textSize.height += margin;
334+
textSize.height += kCPTTextLayerMarginWidth * CPTFloat(2.0);
337335
textSize.height = ceil(textSize.height);
338336
}
339337

0 commit comments

Comments
 (0)