fixing view not returning in place

This commit is contained in:
Mauro Romito 2022-10-21 17:52:01 +02:00
parent a5b128c31e
commit 866721df40

View file

@ -103,7 +103,12 @@ class WysiwygInputToolbarView: MXKRoomInputToolbarView, NibLoadable, HtmlRoomInp
.sink(receiveValue: { [weak self] idealHeight in .sink(receiveValue: { [weak self] idealHeight in
guard let self = self else { return } guard let self = self else { return }
self.updateToolbarHeight(wysiwygHeight: idealHeight) self.updateToolbarHeight(wysiwygHeight: idealHeight)
}) }),
wysiwygViewModel.$idealHeight
.removeDuplicates()
.sink { [weak hostingViewController] _ in
hostingViewController?.view.setNeedsLayout()
}
] ]
update(theme: ThemeService.shared().theme) update(theme: ThemeService.shared().theme)