From d74f843b275bf1496c7d6f1c54c40fdedd11f303 Mon Sep 17 00:00:00 2001 From: Sam Steele Date: Tue, 12 Jul 2016 10:21:54 -0400 Subject: [PATCH] Fix expand/collapse indicator position for socket closed rows when timestamps are on the right --- IRCCloud/Classes/EventsTableView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IRCCloud/Classes/EventsTableView.m b/IRCCloud/Classes/EventsTableView.m index e67638e57..dffd70efe 100644 --- a/IRCCloud/Classes/EventsTableView.m +++ b/IRCCloud/Classes/EventsTableView.m @@ -220,7 +220,7 @@ - (void)layoutSubviews { _socketClosedBar.frame = CGRectMake(0, frame.origin.y + frame.size.height, self.contentView.bounds.size.width, 26); _socketClosedBar.hidden = NO; _socketClosedBar.backgroundColor = [UIColor socketClosedBackgroundColor]; - _accessory.frame = CGRectMake(frame.origin.x + 4 + __timestampWidth, frame.origin.y + 1, _timestamp.font.pointSize, _timestamp.font.pointSize); + _accessory.frame = CGRectMake(frame.origin.x + (__timeLeftPref?(__timestampWidth + 4):0), frame.origin.y + 1, _timestamp.font.pointSize, _timestamp.font.pointSize); } else if(_type == ROW_FAILED) { frame.size.width -= 20; _accessory.frame = CGRectMake(frame.origin.x + frame.size.width + 6, frame.origin.y + 1, _timestamp.font.pointSize, _timestamp.font.pointSize);