mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Horizontal scrolling (#663)
* First pass (missing rendering the bar) * Render horizontal bars, and change Window scroll API * emath: add impl Index + IndexMut for Align2 * Scrolling: fix subtle sizing bugs * Add horizontal scrolling to color test * try to wrap content before showing scrollbars, + add auto-shrink option * Add hscroll to the misc demo window * Fix for putting wrapping labels in an infinitely wide layout * Add a egui_asserts to protect against nans in the layout engine * Add line about horizontal scrolling to changelog * Add example to docs of ScrollArea * code cleanup
This commit is contained in:
@@ -264,7 +264,7 @@ fn ui_resource(
|
||||
|
||||
ui.separator();
|
||||
|
||||
egui::ScrollArea::auto_sized().show(ui, |ui| {
|
||||
egui::ScrollArea::vertical().show(ui, |ui| {
|
||||
if let Some(image) = image {
|
||||
if let Some(texture_id) = tex_mngr.texture(frame, &response.url, image) {
|
||||
let size = egui::Vec2::new(image.size.0 as f32, image.size.1 as f32);
|
||||
|
||||
Reference in New Issue
Block a user