From 7be6bace3ae5afedbc63b88165ea24bd2b81f944 Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Wed, 13 Nov 2013 16:03:19 +0100 Subject: [PATCH] Another shot at better layout of chat cells. --- Classes/LinphoneUI/UIChatRoomCell.m | 4 +--- Classes/LinphoneUI/UIChatRoomCell.xib | 2 -- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/Classes/LinphoneUI/UIChatRoomCell.m b/Classes/LinphoneUI/UIChatRoomCell.m index 108f6d3f3..5e14344ff 100644 --- a/Classes/LinphoneUI/UIChatRoomCell.m +++ b/Classes/LinphoneUI/UIChatRoomCell.m @@ -46,8 +46,6 @@ static const CGFloat CELL_MIN_HEIGHT = 50.0f; static const CGFloat CELL_MIN_WIDTH = 150.0f; static const CGFloat CELL_MAX_WIDTH = 320.0f; -// adding 10 px margin, because the line breaking algorithm in ios seems to need some margin... -// TODO: maybe simplify the view layout to ease the manipulations static const CGFloat CELL_MESSAGE_X_MARGIN = 26.0f + 10.0f; static const CGFloat CELL_MESSAGE_Y_MARGIN = 36.0f; static const CGFloat CELL_FONT_SIZE = 17.0f; @@ -69,7 +67,7 @@ static UIFont *CELL_FONT = nil; // shift message box, otherwise it will collide with the bubble CGRect messageCoords = [messageText frame]; - messageCoords.origin.x += 5; + messageCoords.origin.x += 2; messageCoords.origin.y += 2; messageCoords.size.width -= 5; [messageText setFrame:messageCoords]; diff --git a/Classes/LinphoneUI/UIChatRoomCell.xib b/Classes/LinphoneUI/UIChatRoomCell.xib index baea9421c..fff956268 100644 --- a/Classes/LinphoneUI/UIChatRoomCell.xib +++ b/Classes/LinphoneUI/UIChatRoomCell.xib @@ -154,7 +154,6 @@ _NS:9 - YES IBCocoaTouchFramework @@ -239,7 +238,6 @@ _NS:9 - YES IBCocoaTouchFramework