I'm having a similar problem – I am using the autowidth: true option, and the toppager does not conform to the width as the rest of the grid does.
Using those two lines added in GitHub allows me to set the width to a specific value to match the rest of the grid, but does not seem to work with autowidth:true.