When implementing my pop up rendering I am noticing, that the combo box (select) pop up is not correctly rendered. Actually it is misplaced. You can see it in this screen shot:
https://i.imgur.com/CN2mWit.png
I first suspected a rendering error on my part, however the mouse interaction is at exactly the location of the pop up as you can see with the mouse cursor. Also If I dont use the pop up location from the callback it is exactly in the top left corner of my window. My next guess was that I am doing something wrong with the screen coordinates/view coordinates in the render handler callback, however window popups show up at the right location (which they didnt when I had implemented the callbacks from render handler wrong) as seen below:
https://i.imgur.com/pRMWiMo.png
I am taking the coordinates directly from the callback
- Code: Select all
void OnPopupSize(CefRefPtr<CefBrowser> browser, const CefRect& rect) override;
like this:
- Code: Select all
void PopUpDrawer::onResizePopup(const CefRect& rect) {
mPositionX = rect.x;
mPositionY = rect.y;
mWidth = rect.width;
mHeight = rect.height;
}
Is there something I need to do with these coordinates first?
Thanks in advance and BR
Cromon