A user reported that after setting margins on the home screen the app
drawer showed the alphabet but no apps at all.
The drawer's side padding (DeviceProfile.updateAllAppsContainerWidth)
is built from the workspace side margin and then multiplied by
Lawnchair's drawer indent factor, 0.1 x 100 = 10 on a phone. At the
grid's own 8 dp the base came to 0 and the drawer got the fallback of
10 px. Since 1.0.5 that margin is the owner's Side margins setting, so
every pixel above 8 dp became ten pixels of drawer padding on each
side. Measured on the emulator with 1.0.7 (1080 px wide): 24 dp gave
420 px a side, a strip of icons with no names; 36 dp gave 740 px a
side, no rows and no search field, only the wave alphabet, which lies
over the list and does not use that padding.
The drawer now keeps the grid's own side margin, taken before the
owner's replaces it (flexeraGridSideMarginPx), scaled as the
workspace's is on a scalable grid. The home screen still uses the
owner's margin; top and bottom margins never reached the drawer.
Tested on the emulator (debug build): side margins 24 and 48 dp leave
the drawer padding at 10 px and the list as at 8 dp, with names and
the search field; the home screen still shows the wider margins.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>