Utilise GetZoomFactor() in webview sample

Show example of using GetZoomFactor().

Closes https://github.com/wxWidgets/wxWidgets/pull/1999
This commit is contained in:
Hertatijanto Hartono
2020-07-27 03:27:31 +07:00
committed by Vadim Zeitlin
parent b1729ed8a0
commit c695c419d1

View File

@@ -1019,6 +1019,7 @@ void WebFrame::OnSetZoom(wxCommandEvent& evt)
}
else if (evt.GetId() == m_tools_custom->GetId())
{
m_zoomFactor = m_browser->GetZoomFactor() * 100;
OnZoomCustom(evt);
}
else