Skip to content

Keep krunner results view top aligned

David Edmundson requested to merge work/d_ed/krunner_flicker into master

A flow is:

  • results change
  • we wait for a frame
  • listview updates and resiszes
  • this changes the contentHeight
  • the main layout polish event runs
  • this does a re-layout and updates the implicitHeight
  • the relayout is agains the current window size, if the listview shrinks this means it adds space above and below
  • we request a resize from the platform window, but handleGeometryChange is async
  • we render the window content with our current layout
  • afterwards we get notified the window resized and adjust things accorindgly

this results in a 1 frame flicker which is really annoying.

Current code tries to fix this, but setting a vertical alignment in the layout isn't right, that never adjusts space around the layout item. A spacer works better.

Edited by David Edmundson

Merge request reports