ErikHebeler / delphichromiumembedded

Automatically exported from code.google.com/p/delphichromiumembedded
0 stars 1 forks source link

Component not resized #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 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 9 years ago

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