TabView: Fix margin between x and title

This commit is contained in:
James Magahern
2021-02-15 19:40:51 -08:00
parent 710e666b24
commit 6611e381a2

View File

@@ -61,10 +61,10 @@ class TabView: UIControl
x: xOffset, y: insetBounds.minY, x: xOffset, y: insetBounds.minY,
width: insetBounds.height, height: insetBounds.height width: insetBounds.height, height: insetBounds.height
) )
xOffset += imageView.frame.width xOffset += imageView.frame.width + 12.0
label.frame = CGRect( label.frame = CGRect(
x: xOffset + 12.0, y: insetBounds.minY, x: xOffset, y: insetBounds.minY,
width: closeButton.frame.minX - closeButtonPadding - xOffset, height: insetBounds.height width: closeButton.frame.minX - closeButtonPadding - xOffset, height: insetBounds.height
) )