SpoutDev/Spout — Issue #865: Container.setDirty() still broken
Author: coldandtired
Created: 2011-11-03 13:00:15+00:00
State: open

Name of project: Spout(craft)
Project build: 732
Spout plugin build: 515
Description of issue: Setting the popup.setDirty(true) works but it's very jerky and unpleasant. Setting the Container.setDirty(true) is nicer on the eyes but doesn't refresh the Container properly.
Steps to reproduce: Create a Container and add a Button (or better a few Buttons). Attach it to a Popup, and show the popup to the user. In the Button.onClick() clear the container and add a different Button(s) with different text. Call setDirty(true) on the container. Depending on the amount of Buttons it might work okay but most of the time the previous Buttons are not removed before the new ones are added.