Button layout fixes

New option to force single row layout regardless of the panel mode.
Fixed orientation&alignment logic to fix some layout issues in vertical and deskbar modes.