mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Now showing (empty) for empty lists.
This commit is contained in:
parent
d3c17cb714
commit
464401fada
1 changed files with 7 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue