material-components-ios icon indicating copy to clipboard operation
material-components-ios copied to clipboard

MDCBottomDrawerViewController not going completely full screen when Voice Over is enabled.

Open g-dms opened this issue 4 years ago • 0 comments

When Voice Over is enabled, MDCBottomDrawerViewController in theory always expands to full screen, regardless of the content. This is an explicit behavior that is being added for accessibility, and maximumInitialDrawerHeight is modified for this purpose.

When Voice Over is disabled, you can make the drawer go completely full-screen by assigning maximumInitialDrawerHeight = screenHeight+1. This can be done according to maximumInitialDrawerHeight's documentation, and it seems to work well. However, when Voice Over is enabled, the drawer overrides this variable, assigning maximumInitialDrawerHeight = screenHeight, which is causing the drawer not to go completely full screen, and it expands but sits below the status bar, similar to this:

Screen Shot 2021-04-13 at 12 52 19 PM

Is this the expected behavior? It seems to be inconsistent with the behavior and documentation of setting maximumInitialDrawerHeight to be height of the screen + x.

g-dms avatar Apr 13 '21 16:04 g-dms