input: Add ability to take all available width

close#issues/704@v2