Page 1 of 1

HTML "select" field does not show content items in fullscreen

Posted: Thu Dec 19, 2024 12:33 am
by gui
Hi,

I'd like to report a bug easily reproductible: open the Delphi VCL FullScreenBrowser demo,
replace defaultUrl to this one (to have a select form field):

Code: Select all

procedure TMainForm.FormShow(Sender: TObject);
begin
  Chromium1.DefaultUrl := 'https://developer.mozilla.org/fr/docs/Web/HTML/Element/select';

  // GlobalCEFApp.GlobalContextInitialized has to be TRUE before creating any browser
  // If it's not initialized yet, we use a simple timer to create the browser later.
  if not(Chromium1.CreateBrowser(CEFWindowParent1, '')) then Timer1.Enabled := True;
end;
Run and try to click on the "select" component shown: no popup with items is shown. If not fullscreen, it works. It could be that the popup window appears behind the main one?
Image

Windows information : 1124H2 64-bits, Real PC.
Delphi 12.2 32bits.

Thank you.

Re: HTML "select" field does not show content items in fullscreen

Posted: Thu Dec 19, 2024 10:18 am
by salvadordf
Thank you for reporting this issue! :D

I just uploaded the fix to GitHub. The TForm.FormStyle value was causing this issue.

Re: HTML "select" field does not show content items in fullscreen

Posted: Sat Dec 21, 2024 6:56 pm
by gui
Hi,

Thanks for the quick resolution!
Indeed, I confirm that it works again.