Fixes the BoardCanvas size calculation