This repository was archived by the owner on Sep 5, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 72
72
var template = this . menuTemplate ;
73
73
74
74
var position = $mdPanel . newPanelPosition ( )
75
- . relativeTo ( $event . srcElement )
75
+ . relativeTo ( $event . target )
76
76
. addPanelPosition (
77
77
$mdPanel . xPosition . ALIGN_START ,
78
78
$mdPanel . yPosition . BELOW
103
103
var template = this . menuTemplate ;
104
104
105
105
var position = $mdPanel . newPanelPosition ( )
106
- . relativeTo ( $event . srcElement )
106
+ . relativeTo ( $event . target )
107
107
. addPanelPosition (
108
108
$mdPanel . xPosition . ALIGN_START ,
109
109
$mdPanel . yPosition . BELOW
Original file line number Diff line number Diff line change 85
85
$mdPanel . open ( 'demoPreset' , {
86
86
id : 'menu_' + menu . name ,
87
87
position : $mdPanel . newPanelPosition ( )
88
- . relativeTo ( $event . srcElement )
88
+ . relativeTo ( $event . target )
89
89
. addPanelPosition (
90
90
$mdPanel . xPosition . ALIGN_START ,
91
91
$mdPanel . yPosition . BELOW
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ angular
97
97
* $mdPanel.open('demoPreset', {
98
98
* id: 'menu_' + menu.name,
99
99
* position: $mdPanel.newPanelPosition()
100
- * .relativeTo($event.srcElement )
100
+ * .relativeTo($event.target )
101
101
* .addPanelPosition(
102
102
* $mdPanel.xPosition.ALIGN_START,
103
103
* $mdPanel.yPosition.BELOW
You can’t perform that action at this time.
0 commit comments