setFilterWidth takes into account margin

setFilterWidth() now takes into account any horizontal margins that might be added to filter field e.g. via css