From c6cfb5cf5471e54f956176b668659767a065af99 Mon Sep 17 00:00:00 2001 From: J-P Nurmi Date: Thu, 24 Nov 2016 11:48:47 +0100 Subject: Material: fix Drawer to respect Material.elevation Change-Id: Iecb9e44fb955ad5dc9a8ddf69b4340108693458f Reviewed-by: Mitch Curtis --- src/imports/controls/material/Drawer.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/imports') diff --git a/src/imports/controls/material/Drawer.qml b/src/imports/controls/material/Drawer.qml index a4b2e3bc..c7f4825c 100644 --- a/src/imports/controls/material/Drawer.qml +++ b/src/imports/controls/material/Drawer.qml @@ -53,12 +53,14 @@ T.Drawer { enter: Transition { SmoothedAnimation { velocity: 5 } } exit: Transition { SmoothedAnimation { velocity: 5 } } + Material.elevation: 16 + background: Rectangle { color: control.Material.dialogColor layer.enabled: control.position > 0 layer.effect: ElevationEffect { - elevation: 16 + elevation: control.Material.elevation fullHeight: true } } -- cgit v1.2.3