wrap buttons above fragmentSelector to new line if we have a small window,
hack around firefox bug https://bugzilla.mozilla.org/show_bug.cgi?id=737852
to properly display fragment labels
closes #46