make updateWidth aware of side margins

Bug: 63716325

Test: build and flash
Change-Id: Ia8644737e5377a72c1e6c2eaac1a11a734b8fb31
1 file changed