From f87e2ddc986197f1b41cd4490c4e5fb772f7c516 Mon Sep 17 00:00:00 2001 From: Sumanth Nadigadda Date: Tue, 23 Jul 2024 19:37:58 +0530 Subject: [PATCH 1/3] Adding release notes for Table component fixes --- VDS/SupportingFiles/ReleaseNotes.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VDS/SupportingFiles/ReleaseNotes.txt b/VDS/SupportingFiles/ReleaseNotes.txt index 973e8ed8..414bd6c3 100644 --- a/VDS/SupportingFiles/ReleaseNotes.txt +++ b/VDS/SupportingFiles/ReleaseNotes.txt @@ -2,6 +2,8 @@ ---------------- - CXTDT-581803 - DatePicker - Calendar does not switch to Dark Mode - CXTDT-584278 – InputField - Accessibility +- CXTDT-586375 - Table - Default to compact padding, when striped is selected. +- CXTDT-586497 - Table - Contents alignment based on the row/header 1.0.70 ---------------- From 93b89ee754a918dfe0cf4b021987fc3f9868aba1 Mon Sep 17 00:00:00 2001 From: Sumanth Nadigadda Date: Tue, 20 Aug 2024 18:07:10 +0530 Subject: [PATCH 2/3] Fix for CXTDT-597984, Fixing the padding issue while calculating the itemwidth which is causing the issue. --- VDS/Components/Table/TableFlowLayout.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/VDS/Components/Table/TableFlowLayout.swift b/VDS/Components/Table/TableFlowLayout.swift index 2567f947..7af3621a 100644 --- a/VDS/Components/Table/TableFlowLayout.swift +++ b/VDS/Components/Table/TableFlowLayout.swift @@ -112,8 +112,7 @@ class MatrixFlowLayout : UICollectionViewFlowLayout { /// Fetches estimated height by calling the cell's component estimated height and adding padding private func estimateHeightFor(item: TableItemModel, with width: CGFloat, index: IndexPath) -> CGFloat { - let horizontalPadding = (index.row == 0 && !striped) ? (VDSLayout.space1X + layoutPadding.horizontalValue()) : (2 * layoutPadding.horizontalValue()) - let itemWidth = width - layoutPadding.horizontalValue() - defaultLeadingPadding + let itemWidth = width - layoutPadding.horizontalValue() - (index.row == 0 ? defaultLeadingPadding:layoutPadding.horizontalValue()) let maxSize = CGSize(width: itemWidth, height: CGFloat.greatestFiniteMagnitude) let estItemSize = item.component?.systemLayoutSizeFitting(maxSize, withHorizontalFittingPriority: .required, verticalFittingPriority: .fittingSizeLevel) ?? CGSize(width: itemWidth, height: item.defaultHeight) return estItemSize.height + (2 * layoutPadding.verticalValue()) From 154983264744b186552c7464de753b95df5c3b9c Mon Sep 17 00:00:00 2001 From: Sumanth Nadigadda Date: Tue, 20 Aug 2024 22:28:20 +0530 Subject: [PATCH 3/3] release notes of table component bug fixes. --- VDS/SupportingFiles/ReleaseNotes.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/VDS/SupportingFiles/ReleaseNotes.txt b/VDS/SupportingFiles/ReleaseNotes.txt index ec14a5f7..c201359e 100644 --- a/VDS/SupportingFiles/ReleaseNotes.txt +++ b/VDS/SupportingFiles/ReleaseNotes.txt @@ -1,3 +1,9 @@ +1.0.73 +---------------- +- CXTDT-597984 - Table - Text wrap +- CXTDT-586372 - Table - Stripes defect +- CXTDT-586383 - Table - Line style + 1.0.72 ---------------- - ONEAPP-9311 - InputStepper - Finished