Fixed list edge labels (issue #163). Refactored list layout code.
Merge pull request #165 from X455u/list-label-fix

Fixed list edge labels (issue #163)