mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'Replace-deprecated-constant' into 'master'
Replace deprecated constant in 'loot_scroller' See merge request veloren/veloren!2590
This commit is contained in:
commit
36a0e58a3d
@ -186,7 +186,7 @@ impl<'a> Widget for LootScroller<'a> {
|
||||
s.messages.pop_front();
|
||||
}
|
||||
});
|
||||
ui.scroll_widget(state.ids.message_box, [0.0, std::f64::MAX]);
|
||||
ui.scroll_widget(state.ids.message_box, [0.0, f64::MAX]);
|
||||
}
|
||||
|
||||
// check if it collides with other windows
|
||||
@ -359,7 +359,7 @@ impl<'a> Widget for LootScroller<'a> {
|
||||
.and(|text| {
|
||||
let text_width = match text.get_x_dimension(ui) {
|
||||
Dimension::Absolute(x) => x,
|
||||
_ => std::f64::MAX,
|
||||
_ => f64::MAX,
|
||||
}
|
||||
.min(BOX_WIDTH - (ICON_BG_SIZE + ICON_LABEL_SPACER));
|
||||
text.w(text_width)
|
||||
|
Loading…
Reference in New Issue
Block a user