in src/dotnet/JetBrains.PresentationAssistant/WpfPopupWindow.cs [35:48]
private void UpdatePopupLayout()
{
if (!window.IsMeasureValid)
window.Measure(new Size(double.MaxValue, double.MaxValue));
if (window.IsMeasureValid)
{
// Setting this causes the Layouter to compute a new LayoutResult and
// we get notified via OnLayouterResultChanged
var dpiResolution = DpiResolutions.FromAvalonElement(window);
Layouter.Size.Value = window.DesiredSize.ToWinFormsSize(dpiResolution).ToJetPhysicalSize();
// TODO: Should we check to see if the layouter gives us a different size, then re-measure?
}
}