Merge branch 'bugfix/Table' into 'develop'
Fix for CXTDT-597984 See merge request BPHV_MIPS/vds_ios!289
This commit is contained in:
commit
a53a8ef26e
@ -112,8 +112,7 @@ class MatrixFlowLayout : UICollectionViewFlowLayout {
|
|||||||
|
|
||||||
/// Fetches estimated height by calling the cell's component estimated height and adding padding
|
/// 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 {
|
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() - (index.row == 0 ? defaultLeadingPadding:layoutPadding.horizontalValue())
|
||||||
let itemWidth = width - layoutPadding.horizontalValue() - defaultLeadingPadding
|
|
||||||
let maxSize = CGSize(width: itemWidth, height: CGFloat.greatestFiniteMagnitude)
|
let maxSize = CGSize(width: itemWidth, height: CGFloat.greatestFiniteMagnitude)
|
||||||
let estItemSize = item.component?.systemLayoutSizeFitting(maxSize, withHorizontalFittingPriority: .required, verticalFittingPriority: .fittingSizeLevel) ?? CGSize(width: itemWidth, height: item.defaultHeight)
|
let estItemSize = item.component?.systemLayoutSizeFitting(maxSize, withHorizontalFittingPriority: .required, verticalFittingPriority: .fittingSizeLevel) ?? CGSize(width: itemWidth, height: item.defaultHeight)
|
||||||
return estItemSize.height + (2 * layoutPadding.verticalValue())
|
return estItemSize.height + (2 * layoutPadding.verticalValue())
|
||||||
|
|||||||
@ -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
|
1.0.72
|
||||||
----------------
|
----------------
|
||||||
- ONEAPP-9311 - InputStepper - Finished
|
- ONEAPP-9311 - InputStepper - Finished
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user