mirror of
https://github.com/mikedilger/gossip.git
synced 2024-09-29 08:21:47 +00:00
Revert "egui upgrade: Fix some debug_assert panics related to the use of "Area" (always add a .with()
when using auto-id's for containers)"
This reverts commit 157c1b6b31
.
This commit is contained in:
parent
2f0818d346
commit
419fffa0f0
@ -1649,7 +1649,7 @@ fn draw_seen_on(app: &mut GossipUi, ui: &mut Ui, note: &std::cell::Ref<NoteData>
|
||||
let response = ui.add(Label::new(RichText::new("👁").size(12.0)).sense(Sense::hover()));
|
||||
|
||||
if response.hovered() {
|
||||
egui::Area::new(ui.next_auto_id().with("seen_on"))
|
||||
egui::Area::new(ui.next_auto_id())
|
||||
.movable(false)
|
||||
.interactable(false)
|
||||
// .pivot(Align2::RIGHT_TOP) // Fails to work as advertised
|
||||
|
@ -1314,7 +1314,7 @@ impl GossipUi {
|
||||
+ Vec2::new(-crate::AVATAR_SIZE_F32 * 2.0, -crate::AVATAR_SIZE_F32 * 2.0)
|
||||
};
|
||||
|
||||
egui::Area::new(ui.next_auto_id().with("plus"))
|
||||
egui::Area::new(ui.next_auto_id())
|
||||
.movable(false)
|
||||
.interactable(true)
|
||||
.fixed_pos(pos)
|
||||
|
@ -39,7 +39,7 @@ pub(in crate::ui) fn show_contact_search(
|
||||
let frame = egui::Frame::popup(ui.style())
|
||||
.rounding(egui::Rounding::ZERO)
|
||||
.inner_margin(egui::Margin::same(0.0));
|
||||
let area = egui::Area::new(ui.next_auto_id().with("tt"))
|
||||
let area = egui::Area::new(ui.next_auto_id())
|
||||
.pivot(pivot)
|
||||
.fixed_pos(fixed_pos)
|
||||
.movable(false)
|
||||
|
Loading…
Reference in New Issue
Block a user