optimize SteppedVector

This commit is contained in:
Simon Gardling
2022-05-23 09:49:31 -04:00
parent a012deac4e
commit de405d168a
4 changed files with 23 additions and 35 deletions

View File

@@ -380,7 +380,7 @@ impl MathApp {
self.functions.display_entries(ui);
// Only render if there's enough space
if ui.available_height() > 14.0 {
if ui.available_height() > crate::data::FONT_SIZE {
ui.with_layout(Layout::bottom_up(Align::Min), |ui| {
// Contents put in reverse order from bottom to top due to the 'buttom_up' layout