JAL-2605 ensure correct scale width calculation