menu: position tweaks
This commit is contained in:
parent
75f90e7455
commit
1dc70c69cb
1 changed files with 2 additions and 1 deletions
|
|
@ -258,10 +258,11 @@ class Menu extends Widget {
|
|||
var parent = this.parent,
|
||||
scrollOffset = [0,0]
|
||||
|
||||
while (parent && parent.props && parent.getProp('type') !== 'tab' && parent.getProp('type') !== 'modal') {
|
||||
while (parent && parent.props && parent.getProp('type') !== 'tab') {
|
||||
scrollOffset[0] += parent.widget.scrollLeft
|
||||
scrollOffset[1] += parent.widget.scrollTop
|
||||
parent = parent.parent
|
||||
if (parent.getProp('type') === 'modal') break
|
||||
}
|
||||
|
||||
return scrollOffset
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue