jsuarezruiz/maui-linux

[Bug] ButtonHandler.Gtk: too much layout-roundtrips if button is pressed

lytico opened this issue · 0 comments

Description

pressing a Button generates a lot of layout-roundtrips

Steps to Reproduce

  1. run Controls.Samples.Gtk
  2. press button "Hello From Forms"
  3. watch TRACE_ALLOCATION - debugline / measurecounts (first number)

Expected Behavior

less layout-roundtrips if button is pressed

Actual Behavior

Basic Information

  • Version with issue:
  • Last known good version:
  • IDE:
  • Platform Target Frameworks:
    • iOS:
    • Android:
    • UWP:
  • Android Support Library Version:
  • Nuget Packages:
  • Affected Devices:

Screenshots

debugline / measurecounts on start: 11 (first number on bottom of layout)

grafik

debugline / measurecounts after button pressed: 42, that means, there are 31 layout-measure roundtrips on a button click

grafik

remark: no, the size didn't change, this is only the screenshot size

Reproduction Link

Workaround