diff options
Diffstat (limited to 'native')
| -rw-r--r-- | native/src/widget/pick_list.rs | 2 | ||||
| -rw-r--r-- | native/src/window/event.rs | 8 | 
2 files changed, 8 insertions, 2 deletions
| diff --git a/native/src/widget/pick_list.rs b/native/src/widget/pick_list.rs index 58c0dfe1..4110b9bb 100644 --- a/native/src/widget/pick_list.rs +++ b/native/src/widget/pick_list.rs @@ -132,7 +132,7 @@ where      Renderer: self::Renderer + scrollable::Renderer + 'a,  {      fn width(&self) -> Length { -        Length::Shrink +        self.width      }      fn height(&self) -> Length { diff --git a/native/src/window/event.rs b/native/src/window/event.rs index b177141a..fc746781 100644 --- a/native/src/window/event.rs +++ b/native/src/window/event.rs @@ -3,7 +3,7 @@ use std::path::PathBuf;  /// A window-related event.  #[derive(PartialEq, Clone, Debug)]  pub enum Event { -    /// A window was resized +    /// A window was resized.      Resized {          /// The new width of the window (in units)          width: u32, @@ -12,6 +12,12 @@ pub enum Event {          height: u32,      }, +    /// A window was focused. +    Focused, + +    /// A window was unfocused. +    Unfocused, +      /// A file is being hovered over the window.      ///      /// When the user hovers multiple files at once, this event will be emitted | 
