Hello,
I have created a treeview with a contextmenu, the problem I am experiencing is that the contextmenu isn't positioning itself correctly.
The reason for this is that the treeview is very long and is inside a div which has set overflow to auto, so the page itselft doesn't have scrollbars, instead the div has them.
This is causing the problem.
I've tried listening to showing/shown events on the contextmenu and I have tried manipulating the position with limited success. I've also tried to do a set_cancel on showing and then running a showAt(,,) on the desired position but that only worked halfway because the event bubbled up and the browser context menu also displayed.
Hope somebody can help me with this.
I have created a treeview with a contextmenu, the problem I am experiencing is that the contextmenu isn't positioning itself correctly.
The reason for this is that the treeview is very long and is inside a div which has set overflow to auto, so the page itselft doesn't have scrollbars, instead the div has them.
This is causing the problem.
I've tried listening to showing/shown events on the contextmenu and I have tried manipulating the position with limited success. I've also tried to do a set_cancel on showing and then running a showAt(,,) on the desired position but that only worked halfway because the event bubbled up and the browser context menu also displayed.
Hope somebody can help me with this.