Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
If you find these projects useful please consider becoming a sponsor with Patreon, GitHub or Liberapay.

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

Post Reply
gui
Posts: 4
Joined: Thu Dec 19, 2024 12:27 am

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

Post 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.
User avatar
salvadordf
Posts: 4620
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

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

Post by salvadordf »

Thank you for reporting this issue! :D

I just uploaded the fix to GitHub. The TForm.FormStyle value was causing this issue.
gui
Posts: 4
Joined: Thu Dec 19, 2024 12:27 am

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

Post by gui »

Hi,

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