He guys,
another little question.
I added a context menu in my jcef project.
There is an option for opening devtools at current position (like inspect element in chrome).
How do I get the right position in jcef for inspectAt?
Thanks
CefContextMenuHandlerAdapter
onContextMenuCommand
browser.getUIComponent().getMousePosition()
new Point(params.getXCoord(), params.getYCoord())
edominic wrote:InI tried the following options:
- Code: Select all
onContextMenuCommand
getting x/y from cefbrowser argument:
- Code: Select all
browser.getUIComponent().getMousePosition()
or getting x/y from params argument:
- Code: Select all
new Point(params.getXCoord(), params.getYCoord())
new Point(params.getXCoord(), params.getYCoord())
edominic wrote:With
- Code: Select all
new Point(params.getXCoord(), params.getYCoord())
I get the coordinates, where I do the right-click
edominic wrote:There is no offset, context menu displays where I did right click.
x/y point is right, too
Users browsing this forum: No registered users and 126 guests