For phones, we set the side panel width to the portrait screen width minus the visible width of the closed center panel minus the margin between panels.
That logic makes the side panels very wide on tablets, so this PR adds an attribute on OverlappingPanelsLayout to set a max non-full-screen width fro the side panel. OverlappingPanelsLayout will set the side panel width to the minimum between the portrait-screen-width based panel width and the max non-full-screen width.
The max non-full-screen width does not affect OverlappingPanels#setStartPanelUseFullPortraitWidth() API which still sets the start panel width to the full screen width.
For phones, we set the side panel width to the portrait screen width minus the visible width of the closed center panel minus the margin between panels.
That logic makes the side panels very wide on tablets, so this PR adds an attribute on
OverlappingPanelsLayout
to set a max non-full-screen width fro the side panel.OverlappingPanelsLayout
will set the side panel width to the minimum between the portrait-screen-width based panel width and the max non-full-screen width.The max non-full-screen width does not affect
OverlappingPanels#setStartPanelUseFullPortraitWidth()
API which still sets the start panel width to the full screen width.