Opened 12 years ago
Last modified 8 years ago
#9689 assigned bug
DisableUpdates()/EnableUpdates doesn't seem to work with Layout API
Reported by: | jessicah | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Kits/Interface Kit | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
While making changes to Tracker's Find to use the Layout API, discovered a drawing bug when layout changes were triggered by a function in the overridden BWindow::MessageReceived
hook.
The window calls DisableUpdates()
, makes layout changes, and then calls EnableUpdates()
, but the window is not redrawn correctly. Even adding UpdateIfNeeded()
after EnableUpdates()
did not cause the window to redraw.
Removing the calls to disable/enable updates allowed the window to redraw correctly.
My current changes are available at https://github.com/jessicah/haiku/tree/find-panel-layout-api, SwitchToTemplate.
Change History (3)
comment:1 by , 12 years ago
Component: | User Interface → Kits/Interface Kit |
---|---|
Owner: | changed from | to
comment:3 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Thanks for the report! I think there might be some code in place to support this, but my faint memory is that I never tested this very well and there might be situations, specifically moving around BViews, which circumvents the blocked updates. I.e. support for this feature is probably incomplete.