diff options
author | 2019-11-16 22:08:49 +0100 | |
---|---|---|
committer | 2019-11-16 22:08:49 +0100 | |
commit | 6cdf69e76b8052fb726d5c2bf6c9746182e04d05 (patch) | |
tree | d915860ee02bb0041ef5aad4660466c5420ca62e /native/src/widget/checkbox.rs | |
parent | 2cbd5d60c46d956fcab685b448a40c1aa5f5b69f (diff) | |
download | iced-6cdf69e76b8052fb726d5c2bf6c9746182e04d05.tar.gz iced-6cdf69e76b8052fb726d5c2bf6c9746182e04d05.tar.bz2 iced-6cdf69e76b8052fb726d5c2bf6c9746182e04d05.zip |
Make `width` and `height` required methods
Diffstat (limited to 'native/src/widget/checkbox.rs')
-rw-r--r-- | native/src/widget/checkbox.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/native/src/widget/checkbox.rs b/native/src/widget/checkbox.rs index 3f0f8dda..4ca44e02 100644 --- a/native/src/widget/checkbox.rs +++ b/native/src/widget/checkbox.rs @@ -14,6 +14,10 @@ where Length::Fill } + fn height(&self) -> Length { + Length::Shrink + } + fn layout( &self, renderer: &Renderer, |