Properly calculate width for seachbox.