From 3c35c71e8294cc25958caf6afed5123f11beeaf3 Mon Sep 17 00:00:00 2001 From: Alexander Borsuk Date: Sun, 19 Feb 2023 00:10:52 +0100 Subject: [PATCH] [ios] Increased top margin for the Note header, decreased Note size Signed-off-by: Alexander Borsuk --- iphone/Maps/UI/Editor/Cells/MWMNoteCell.m | 2 +- iphone/Maps/UI/Editor/Cells/MWMNoteCell.xib | 6 +++--- iphone/Maps/UI/Editor/MWMEditorViewController.mm | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/iphone/Maps/UI/Editor/Cells/MWMNoteCell.m b/iphone/Maps/UI/Editor/Cells/MWMNoteCell.m index 8839fa549d..16bec6b4c6 100644 --- a/iphone/Maps/UI/Editor/Cells/MWMNoteCell.m +++ b/iphone/Maps/UI/Editor/Cells/MWMNoteCell.m @@ -3,7 +3,7 @@ static CGFloat const kTopTextViewOffset = 12.; static NSString *const kTextViewContentSizeKeyPath = @"contentSize"; -static CGFloat const kMinimalTextViewHeight = 104.; +static CGFloat const kMinimalTextViewHeight = 44.; static void *kContext = &kContext; @interface MWMNoteCell () diff --git a/iphone/Maps/UI/Editor/Cells/MWMNoteCell.xib b/iphone/Maps/UI/Editor/Cells/MWMNoteCell.xib index c793ea22af..08622f8e22 100644 --- a/iphone/Maps/UI/Editor/Cells/MWMNoteCell.xib +++ b/iphone/Maps/UI/Editor/Cells/MWMNoteCell.xib @@ -1,9 +1,9 @@ - + - + @@ -20,7 +20,7 @@ - + diff --git a/iphone/Maps/UI/Editor/MWMEditorViewController.mm b/iphone/Maps/UI/Editor/MWMEditorViewController.mm index 72c68e75e1..60307afb8a 100644 --- a/iphone/Maps/UI/Editor/MWMEditorViewController.mm +++ b/iphone/Maps/UI/Editor/MWMEditorViewController.mm @@ -791,7 +791,7 @@ void registerCellsForTableView(std::vector const & cells, UITab - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { - return kDefaultHeaderHeight; + return m_sections[section] == MWMEditorSectionNote ? kDefaultHeaderHeight * 2 : kDefaultHeaderHeight; } - (CGFloat)tableView:(UITableView *)tableView heightForFooterInSection:(NSInteger)section