-
Notifications
You must be signed in to change notification settings - Fork 996
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prevent
STPPaymentMethodTableViewCell.titleLabel
from overlapping c…
…heckmark (#952) Previous layout code allowed the `titleLabel` to be as wide as it wanted, even if that ran offscreen. Fixing it to explicitly constrain the `titleLabel` to be between the `leftIcon` and `checkmarkIcon`, with horizontal spacing of `padding`. Instead of asking UIKit to calculate the height that the `titleLabel` should be, just use the full height of the cell. We get the same vertical centering, and similarly prevents the label from exceeding the bounds of the cell. The snapshot tests do show slight differences in how the `titleLabel` renders. I believe it's *now* pixel aligning the text. When I compare before/after, especially on something like the `E` in `Ending In` (it's true of all the letters, but really apparent on `E`), the old snapshot has anti-aliased top/bottoms, where the new snapshot has crisp lines. This is subtle enough that I hadn't noticed it previously, but I think it's a nice, unexpected bonus. Fixes #948
- Loading branch information
1 parent
3881229
commit c2880e3
Showing
12 changed files
with
9 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-3.35 KB
(93%)
...mages_64/STPPaymentContextSnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.36 KB
(93%)
...mages_64/STPPaymentContextSnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.5 KB
(94%)
...ceImages_64/STPPaymentMethodsViewControllerLocalizationTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.83 KB
(94%)
...enceImages_64/STPPaymentMethodsViewControllerLocalizationTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-3.36 KB
(93%)
...ceImages_64/STPPaymentMethodsViewControllerLocalizationTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.7 KB
(94%)
...nceImages_64/STPPaymentMethodsViewControllerLocalizationTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.81 KB
(94%)
...nceImages_64/STPPaymentMethodsViewControllerLocalizationTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.67 KB
(94%)
...ceImages_64/STPPaymentMethodsViewControllerLocalizationTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.98 KB
(94%)
...eImages_64/STPPaymentMethodsViewControllerLocalizationTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.66 KB
(94%)
...ceImages_64/STPPaymentMethodsViewControllerLocalizationTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.