mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Fix emoji panel position in star gift box.
This commit is contained in:
@@ -784,14 +784,11 @@ struct GiftPriceTabs {
|
|||||||
}
|
}
|
||||||
return base::EventFilterResult::Continue;
|
return base::EventFilterResult::Continue;
|
||||||
};
|
};
|
||||||
base::install_event_filter(field, outer, filterCallback);
|
for (auto widget = (QWidget*)field, end = (QWidget*)outer->parentWidget()
|
||||||
updateEmojiPanelGeometry();
|
; widget && widget != end
|
||||||
|
; widget = widget->parentWidget()) {
|
||||||
rpl::merge(
|
base::install_event_filter(field, widget, filterCallback);
|
||||||
toggle->geometryValue(),
|
}
|
||||||
container->geometryValue(),
|
|
||||||
field->geometryValue()
|
|
||||||
) | rpl::start_with_next(updateEmojiPanelGeometry, panel->lifetime());
|
|
||||||
|
|
||||||
toggle->installEventFilter(panel);
|
toggle->installEventFilter(panel);
|
||||||
toggle->addClickHandler([=] {
|
toggle->addClickHandler([=] {
|
||||||
|
Reference in New Issue
Block a user