Migrate to egui v0.29.1
Not too many breaking changes. I updated egui-nav and egui-tabs as well. Fixes: https://github.com/damus-io/notedeck/issues/315 Changelog-Fixed: Fixed crash when navigating in debug mode Changelog-Changed: Migrated to egui v0.29.1 Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -244,7 +244,7 @@ fn image_carousel(
|
||||
|
||||
ui.add_sized([width, height], |ui: &mut egui::Ui| {
|
||||
egui::ScrollArea::horizontal()
|
||||
.id_source(carousel_id)
|
||||
.id_salt(carousel_id)
|
||||
.show(ui, |ui| {
|
||||
ui.horizontal(|ui| {
|
||||
for image in images {
|
||||
|
||||
@@ -50,7 +50,7 @@ impl<'a> ProfileView<'a> {
|
||||
let scroll_id = egui::Id::new(("profile_scroll", self.col_id, self.pubkey));
|
||||
|
||||
ScrollArea::vertical()
|
||||
.id_source(scroll_id)
|
||||
.id_salt(scroll_id)
|
||||
.show(ui, |ui| {
|
||||
let txn = Transaction::new(self.ndb).expect("txn");
|
||||
if let Ok(profile) = self.ndb.get_profile_by_pubkey(&txn, self.pubkey.bytes()) {
|
||||
|
||||
@@ -65,7 +65,7 @@ impl<'a> RelayView<'a> {
|
||||
.inner_margin(Margin::symmetric(0.0, 4.0))
|
||||
.show(ui, |ui| {
|
||||
egui::ScrollArea::horizontal()
|
||||
.id_source(index)
|
||||
.id_salt(index)
|
||||
.max_width(
|
||||
ui.max_rect().width()
|
||||
- get_right_side_width(relay_info.status),
|
||||
|
||||
@@ -73,7 +73,7 @@ impl<'a> ThreadView<'a> {
|
||||
);
|
||||
|
||||
egui::ScrollArea::vertical()
|
||||
.id_source(self.id_source)
|
||||
.id_salt(self.id_source)
|
||||
.animated(false)
|
||||
.auto_shrink([false, false])
|
||||
.scroll_bar_visibility(egui::scroll_area::ScrollBarVisibility::AlwaysVisible)
|
||||
|
||||
@@ -97,7 +97,7 @@ fn timeline_ui(
|
||||
};
|
||||
|
||||
egui::ScrollArea::vertical()
|
||||
.id_source(scroll_id)
|
||||
.id_salt(scroll_id)
|
||||
.animated(false)
|
||||
.auto_shrink([false, false])
|
||||
.scroll_bar_visibility(ScrollBarVisibility::AlwaysVisible)
|
||||
|
||||
Reference in New Issue
Block a user