Now showing (empty) for empty lists.

This commit is contained in:
Shane M. Clements 2014-05-28 13:44:26 -06:00
parent d3c17cb714
commit 464401fada

View file

@ -437,6 +437,13 @@ public class ListWatcher extends Sprite {
nextY += cell.height - 1;
if (nextY > visibleHeight) break;
}
if(!contents.length) {
var tf:TextField = createTextField(Translator.map('(empty)'), cellNumFont);
tf.x = (frame.w - SCROLLBAR_W - tf.textWidth) / 2;
tf.y = (visibleHeight - tf.textHeight) / 2;
cellPane.addChild(tf);
}
}
private function cellNumWidth():int {