The input become invisible when the row is filled

In case the selected items fill up the whole first row, the resulting width becomes negative.