Fixed delete button showing on read-only lists

This commit is contained in:
Nathan Dinsmore 2014-05-28 18:25:33 -04:00
parent 01a711674a
commit 2f3969bd92

View file

@ -88,7 +88,7 @@ public class ListCell extends Sprite {
var hasFocus:Boolean = (e.type == FocusEvent.FOCUS_IN);
frame.setColor(hasFocus ? focusedColor : normalColor);
tf.textColor = (hasFocus ? 0 : 0xFFFFFF);
setTimeout(hasFocus ? addDeleteButton : removeDeleteButton, 1);
setTimeout(hasFocus && tf.type == 'input' ? addDeleteButton : removeDeleteButton, 1);
}
private function removeDeleteButton():void {