fixed the positioning

This commit is contained in:
Mauro Romito
2022-11-04 11:07:14 +01:00
parent 89b2ef6687
commit eaffd3e1fa
4 changed files with 6 additions and 6 deletions
+1
View File
@@ -72,6 +72,7 @@ extern NSTimeInterval const kResizeComposerAnimationDuration;
@property (weak, nonatomic, nullable) IBOutlet UIView *inputBackgroundView;
@property (weak, nonatomic, nullable) IBOutlet UIButton *scrollToBottomButton;
@property (weak, nonatomic, nullable) IBOutlet BadgeLabel *scrollToBottomBadgeLabel;
@property (nonatomic, strong) IBOutlet UIView *overlayContainerView;
// Remove Jitsi widget container
@property (weak, nonatomic, nullable) IBOutlet UIView *removeJitsiWidgetContainer;
-1
View File
@@ -187,7 +187,6 @@ static CGSize kThreadListBarButtonItemImageSize;
MXTaskProfile *notificationTaskProfile;
}
@property (nonatomic, weak) IBOutlet UIView *overlayContainerView;
@property (nonatomic, strong) RemoveJitsiWidgetView *removeJitsiWidgetView;
+1 -1
View File
@@ -161,7 +161,7 @@ extension RoomViewController {
roomInputToolbarContainer.bottomAnchor.constraint(equalTo: view.bottomAnchor).isActive = true
} else if roomInputToolbarContainer.superview != self.view {
roomInputToolbarContainer.removeFromSuperview()
self.view.addSubview(roomInputToolbarContainer)
self.view.insertSubview(roomInputToolbarContainer, belowSubview: overlayContainerView)
NSLayoutConstraint.activate(toolbarContainerConstraints)
}
}
@@ -229,10 +229,10 @@ class WysiwygInputToolbarView: MXKRoomInputToolbarView, NibLoadable, HtmlRoomInp
addSubview(voiceMessageToolbarView)
NSLayoutConstraint.activate(
[
hostingViewController.view.topAnchor.constraint(equalTo: voiceMessageToolbarView.topAnchor),
hostingViewController.view.leftAnchor.constraint(equalTo: voiceMessageToolbarView.leftAnchor),
hostingViewController.view.bottomAnchor.constraint(equalTo: voiceMessageToolbarView.bottomAnchor, constant: 4),
hostingViewController.view.rightAnchor.constraint(equalTo: voiceMessageToolbarView.rightAnchor)
self.topAnchor.constraint(equalTo: voiceMessageToolbarView.topAnchor),
self.safeAreaLayoutGuide.leftAnchor.constraint(equalTo: voiceMessageToolbarView.leftAnchor),
self.safeAreaLayoutGuide.bottomAnchor.constraint(equalTo: voiceMessageToolbarView.bottomAnchor, constant: 4),
self.safeAreaLayoutGuide.rightAnchor.constraint(equalTo: voiceMessageToolbarView.rightAnchor)
]
)
} else {