integrated-application-development / delphilint

Delphi IDE package providing on-the-fly code analysis and linting, powered by SonarDelphi
GNU Lesser General Public License v3.0
87 stars 13 forks source link

Embedded browser does not display when docked if first opened in undocked mode #46

Closed fourls closed 5 months ago

fourls commented 5 months ago

Prerequisites

Delphi IDE version

Repro'd on Delphi 11.2 Professional and Delphi 12.1 Patch 1 Professional

DelphiLint version

1.1.0

SonarDelphi version

1.6.0

SonarQube version

No response

Issue description

In some circumstances the embedded Edge browser view used for rule descriptions does not render when the DelphiLint window is docked (see exact steps to reproduce below). This appears to be a visual bug rather than the result of a web view failure, since the view rerenders fine if the view is undocked and reflects changes that have been made to it while it was blank (e.g. navigating to new pages).

When undocked: image

When docked: image

Steps to reproduce

  1. Load DelphiLint
  2. Open the DelphiLint window via DelphiLint > Show DelphiLint and keep undocked
  3. Click Analyze on a file that will have issues, and wait for those issues to turn up
  4. Click on an issue - the rule description view will show up correctly
  5. Dock the DelphiLint window - the rule description view will now be rendered as plain white

This is reproducible after this - when undocked, the view will work fine, but when docked it will display as white.

Minimal Delphi code exhibiting the issue

No response