We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36f3416 commit d9f5c7aCopy full SHA for d9f5c7a
WordPress/Jetpack/Classes/NUX/New Landing Screen/ViewModel/JetpackPromptsConfiguration.swift
@@ -17,10 +17,10 @@ struct JetpackPromptsConfiguration {
17
18
var prompts = [JetpackPrompt]()
19
20
- let frameHeight = ceil(size.height / CGFloat(Constants.visibleRows))
+ let frameHeight = ceil(size.height / CGFloat(Constants.visibleRows)) + JetpackPromptView.totalVerticalPadding
21
self.frameHeight = frameHeight
22
23
- let fontSize = floor(frameHeight * Constants.fontScaleFactor)
+ let fontSize = floor((frameHeight - JetpackPromptView.totalVerticalPadding) * Constants.fontScaleFactor)
24
self.fontSize = fontSize
25
// sum of all the offsets + frame height of the last element = total height
26
var cumulatedOffset: CGFloat = 0
0 commit comments