slidingView: Allow WidgetExt::allocation for now

Has been deprecated but not sure what is the correct replacement
This commit is contained in:
Sophie Herold 2023-08-16 12:06:25 +02:00
parent 05868d785f
commit 8cb14169db

View file

@ -238,6 +238,8 @@ mod imp {
fn distance(&self) -> f64 {
let obj = self.obj();
// TODO: Fix deprecation
#[allow(deprecated)]
let width = obj.allocation().width();
width as f64 + self.page_spacing(width) as f64