setFilterWidth takes into account margin

setFilterWidth() now takes into account any horizontal margins that might be added to filter field e.g. via css
Merge pull request #50 from pmatti/master

setFilterWidth takes margin into account