diff --git a/examples/hello.rs b/examples/hello.rs index 2dbb437a..b291c284 100644 --- a/examples/hello.rs +++ b/examples/hello.rs @@ -1,5 +1,6 @@ use anyhow::Result; +use ratatui::layout::Position; use termion::event::Key; use ratatui::{Frame, Viewport}; @@ -50,7 +51,12 @@ impl store::Update for App { impl Show for App { fn show(&self, ctx: &Context, frame: &mut Frame) -> Result<()> { Window::default().show(ctx, |ui| { - ui.text_view(frame, self.alien.clone(), &mut (0, 0), Some(Borders::None)); + ui.text_view( + frame, + self.alien.clone(), + &mut Position::default(), + Some(Borders::None), + ); if ui.input_global(|key| key == Key::Char('q')) { ui.send_message(Message::Quit);