slidingView: Allow WidgetExt::allocation for now
Has been deprecated but not sure what is the correct replacement
This commit is contained in:
parent
05868d785f
commit
8cb14169db
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue