zedalaye / dcef1

The Delphi Chromium Embedded Component that uses CEF1
6 stars 2 forks source link

Component not resized #15

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What is the expected output? What do you see instead?
The component stays the same size as at design time, even trough it's Align 
property is set to alClient. Thi is happening in D2007 compiled app.

Please provide any additional information below.

function TCustomChromium.doOnAfterCreated(const browser: ICefBrowser): 
TCefRetval;
begin
  if not browser.IsPopup then
  begin
    FBrowser := browser;
    FBrowserHandle := browser.GetWindowHandle;
  end;
  //mv Fix the resize problem
  SendMessage(Self.Handle, WM_SIZE, 0, 0);
  Result := RV_CONTINUE;
  if Assigned(FOnAfterCreated) then
    FOnAfterCreated(Self, browser, Result);
end;

Original issue reported on code.google.com by miha.vrh...@gmail.com on 22 Jan 2011 at 2:07

GoogleCodeExporter commented 8 years ago

Original comment by hgourv...@gmail.com on 23 Feb 2011 at 3:47