panel: fix size-zero bug