Page 1 of 1
DevTools vs resizing
Posted: Sat Nov 03, 2018 2:44 pm
by Pieter E.
Hi,
After adding the DevTools view to my form using the ShowDevTools function, teh DevTools view is not auto resizing. Can you please inform me what to do?
Cheers!
Re: DevTools vs resizing
Posted: Sat Nov 03, 2018 3:28 pm
by salvadordf
Hi Pieter,
In the latest CEF4Delphi version the TCEFWindowParent used to show the DevTools is a subclass of TCEFWinControl which overrides the "Resize" procedure to call "UpdateSize".
Check that the UpdateSize procedure is called when the form is resized. If you show the DevTools next to the browser contents which also uses a TCEFWindowParent then UpdateSize should called 2 times : 1 for the browser and 1 for the DevTools.
The MiniBrowser demo has all the code to show the DevTools.