mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-31 15:37:01 +00:00
Various fixes
This commit is contained in:
parent
6c7b921030
commit
6783076846
@ -1227,7 +1227,7 @@ private final class DrawingScreenComponent: CombinedComponent {
|
||||
case .filled:
|
||||
nextStyle = .semi
|
||||
case .semi:
|
||||
nextStyle = .stroke
|
||||
nextStyle = .regular
|
||||
case .stroke:
|
||||
nextStyle = .regular
|
||||
}
|
||||
@ -3480,7 +3480,7 @@ public final class DrawingToolsInteraction {
|
||||
case .filled:
|
||||
nextStyle = .semi
|
||||
case .semi:
|
||||
nextStyle = .stroke
|
||||
nextStyle = .regular
|
||||
case .stroke:
|
||||
nextStyle = .regular
|
||||
}
|
||||
|
@ -322,10 +322,10 @@ final class ContextResultPanelComponent: Component {
|
||||
|
||||
transition.setFrame(view: self.scrollView, frame: CGRect(origin: CGPoint(x: 0.0, y: 0.0), size: CGSize(width: availableSize.width, height: minimizedHeight)))
|
||||
|
||||
let visibleTopContentHeight = min(scrollContentSize.height, measureItemSize.height * 3.5 + 19.0)
|
||||
let visibleTopContentHeight = min(scrollContentSize.height, measureItemSize.height * 3.5)
|
||||
let topInset = availableSize.height - visibleTopContentHeight
|
||||
|
||||
let scrollContentInsets = UIEdgeInsets(top: topInset, left: 0.0, bottom: 19.0, right: 0.0)
|
||||
let scrollContentInsets = UIEdgeInsets(top: topInset, left: 0.0, bottom: 0.0, right: 0.0)
|
||||
let scrollIndicatorInsets = UIEdgeInsets(top: topInset + 17.0, left: 0.0, bottom: 19.0, right: 0.0)
|
||||
if self.scrollView.contentInset != scrollContentInsets {
|
||||
self.scrollView.contentInset = scrollContentInsets
|
||||
|
@ -1449,7 +1449,7 @@ public final class MessageInputPanelComponent: Component {
|
||||
containerSize: CGSize(width: availableSize.width - panelLeftInset - panelRightInset, height: availablePanelHeight)
|
||||
)
|
||||
|
||||
let panelFrame = CGRect(origin: CGPoint(x: insets.left, y: -panelSize.height + 33.0), size: panelSize)
|
||||
let panelFrame = CGRect(origin: CGPoint(x: insets.left, y: -panelSize.height + 14.0), size: CGSize(width: panelSize.width, height: panelSize.height + 19.0))
|
||||
if let panelView = panel.view as? ContextResultPanelComponent.View {
|
||||
if panelView.superview == nil {
|
||||
self.insertSubview(panelView, at: 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user