--
You received this message because you are subscribed to the Google Groups "CefSharp" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cefsharp+u...@googlegroups.com.
To post to this group, send email to cefs...@googlegroups.com.
Visit this group at http://groups.google.com/group/cefsharp?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
Size WebView::ArrangeOverride(Size size) { CefRefPtr<CefBrowser> browser; if (TryGetCefBrowser(browser)) { Point point = _matrix->Transform(Point(size.Width, size.Height)); browser->SetSize(PET_VIEW, (int)size.Width, (int)size.Height); HidePopup(); } else { Dispatcher->BeginInvoke(DispatcherPriority::Loaded, gcnew ActionHandler(this, &WebView::InvalidateArrange)); } return ContentControl::ArrangeOverride(size); }
I thing, you need to convert the size.Width and size.Height from WPF-coodinates to real screen-coodinates?
Anything like this:
Window window = Application.Current.MainWindow; Matrix m = PresentationSource.FromVisual(window).CompositionTarget.TransformToDevice; DpiFactorX = 1 / m.M11; DpiFactorY = 1 / m.M22;
Any updates on this? I wanted to update to the latest version of CefSharp, but this has been holding me back. I played around with this a bit per some of the suggestions in here and haven't been able to get anything working. Strange since the "fix" that was included did work for me in an older version of CefSharp (I had built my my own DLLs using that fix with the latest changes in mid Feb).As mentioned by Deyan Varchev , changing the size of the window will make content appear less blurry but it's never as clear as it should be.