mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Various fixes
This commit is contained in:
parent
641310f4a8
commit
a523f70a14
@ -341,6 +341,7 @@ final class GiftStoreScreenComponent: Component {
|
|||||||
}
|
}
|
||||||
self.showLoading = true
|
self.showLoading = true
|
||||||
self.state?.starGiftsContext.updateFilterAttributes([])
|
self.state?.starGiftsContext.updateFilterAttributes([])
|
||||||
|
self.scrollToTop()
|
||||||
},
|
},
|
||||||
animateScale: false
|
animateScale: false
|
||||||
)
|
)
|
||||||
@ -359,7 +360,7 @@ final class GiftStoreScreenComponent: Component {
|
|||||||
var emptyResultsActionFrame = CGRect(
|
var emptyResultsActionFrame = CGRect(
|
||||||
origin: CGPoint(
|
origin: CGPoint(
|
||||||
x: floorToScreenPixels((availableWidth - emptyResultsActionSize.width) / 2.0),
|
x: floorToScreenPixels((availableWidth - emptyResultsActionSize.width) / 2.0),
|
||||||
y: max(self.scrollView.contentSize.height - 8.0, availableHeight - bottomInset - emptyResultsActionSize.height - 16.0)
|
y: max(self.scrollView.contentSize.height - 70.0, availableHeight - bottomInset - emptyResultsActionSize.height - 16.0)
|
||||||
),
|
),
|
||||||
size: emptyResultsActionSize
|
size: emptyResultsActionSize
|
||||||
)
|
)
|
||||||
@ -437,7 +438,7 @@ final class GiftStoreScreenComponent: Component {
|
|||||||
if view.superview == nil {
|
if view.superview == nil {
|
||||||
view.alpha = 0.0
|
view.alpha = 0.0
|
||||||
fadeTransition.setAlpha(view: view, alpha: 1.0)
|
fadeTransition.setAlpha(view: view, alpha: 1.0)
|
||||||
self.insertSubview(view, belowSubview: self.loadingNode.view)
|
self.scrollView.addSubview(view)
|
||||||
}
|
}
|
||||||
view.bounds = CGRect(origin: .zero, size: emptyResultsActionFrame.size)
|
view.bounds = CGRect(origin: .zero, size: emptyResultsActionFrame.size)
|
||||||
ComponentTransition.immediate.setPosition(view: view, position: emptyResultsActionFrame.center)
|
ComponentTransition.immediate.setPosition(view: view, position: emptyResultsActionFrame.center)
|
||||||
@ -847,7 +848,7 @@ final class GiftStoreScreenComponent: Component {
|
|||||||
self.backgroundColor = environment.theme.list.blocksBackgroundColor
|
self.backgroundColor = environment.theme.list.blocksBackgroundColor
|
||||||
}
|
}
|
||||||
|
|
||||||
let bottomContentInset: CGFloat = 24.0
|
let bottomContentInset: CGFloat = 56.0
|
||||||
let sideInset: CGFloat = 16.0 + environment.safeInsets.left
|
let sideInset: CGFloat = 16.0 + environment.safeInsets.left
|
||||||
let headerSideInset: CGFloat = 24.0 + environment.safeInsets.left
|
let headerSideInset: CGFloat = 24.0 + environment.safeInsets.left
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user