BaseView: Set scroll policy
This commit is contained in:
parent
0b4ea38708
commit
382830a10b
@ -1,4 +1,4 @@
|
|||||||
use gtk::{self, prelude::*, Orientation};
|
use gtk::{self, prelude::*, Orientation, PolicyType};
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub(crate) struct BaseView {
|
pub(crate) struct BaseView {
|
||||||
@ -10,6 +10,8 @@ impl Default for BaseView {
|
|||||||
fn default() -> Self {
|
fn default() -> Self {
|
||||||
let container = gtk::Box::new(Orientation::Horizontal, 0);
|
let container = gtk::Box::new(Orientation::Horizontal, 0);
|
||||||
let scrolled_window = gtk::ScrolledWindow::new(None, None);
|
let scrolled_window = gtk::ScrolledWindow::new(None, None);
|
||||||
|
|
||||||
|
scrolled_window.set_policy(PolicyType::Never, PolicyType::Automatic);
|
||||||
container.add(&scrolled_window);
|
container.add(&scrolled_window);
|
||||||
container.show_all();
|
container.show_all();
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user