From 1933c79f7a87d8261d91ca4e14eb51c1ddc66624 Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Tue, 4 Sep 2018 11:44:35 +0300 Subject: [PATCH] BaseView: Set minimum width to 360 While the HomeView and ShowView can't yet scale that low, the ShowWidget could get to about 270p already which is not desirable. This commit sets the minimum width of all the Views to 360p, which is our mobile target size. --- podcasts-gtk/src/widgets/base_view.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/podcasts-gtk/src/widgets/base_view.rs b/podcasts-gtk/src/widgets/base_view.rs index f9e901e..967f4c2 100644 --- a/podcasts-gtk/src/widgets/base_view.rs +++ b/podcasts-gtk/src/widgets/base_view.rs @@ -13,6 +13,7 @@ impl Default for BaseView { let scrolled_window = gtk::ScrolledWindow::new(None, None); scrolled_window.set_policy(PolicyType::Never, PolicyType::Automatic); + container.set_size_request(360, -1); container.add(&scrolled_window); container.show_all();