Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 1169854

Browse files
committed
Fix bug with TouchLineInput color (doesn't change after initial setting)
1 parent a10ad12 commit 1169854

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Classes/BEMSimpleLineGraphView.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,9 +430,9 @@ - (void)layoutTouchReport {
430430
// Initialize the vertical gray line that appears where the user touches the graph.
431431
if (!self.touchInputLine) {
432432
self.touchInputLine = [[UIView alloc] initWithFrame:CGRectMake(0, 0, self.widthTouchInputLine, self.frame.size.height)];
433-
self.touchInputLine.backgroundColor = self.colorTouchInputLine;
434-
self.touchInputLine.alpha = 0;
435433
}
434+
self.touchInputLine.alpha = 0;
435+
self.touchInputLine.backgroundColor = self.colorTouchInputLine;
436436
[self addSubview:self.touchInputLine];
437437

438438
if (!self.panView) {

0 commit comments

Comments
 (0)