Skip to content
Snippets Groups Projects
Commit b95bf3cf authored by Chris Banes's avatar Chris Banes
Browse files

Fix CascadingMenuPopup width if background has padding

Happens because CascadingMenuPopup calls setWidth() rather
than setContentWidth() like StandardMenuPopup does.

BUG: 30365568
Change-Id: I349b5cf81982d7efc85342ab672f2b4e65bafd70
parent cd854f58
No related branches found
No related tags found
No related merge requests found
......@@ -366,7 +366,7 @@ final class CascadingMenuPopup extends MenuPopup implements MenuPresenter, OnKey
final int menuWidth = measureIndividualMenuWidth(adapter, null, mContext, mMenuMaxWidth);
final MenuPopupWindow popupWindow = createPopupWindow();
popupWindow.setAdapter(adapter);
popupWindow.setWidth(menuWidth);
popupWindow.setContentWidth(menuWidth);
popupWindow.setDropDownGravity(mDropDownGravity);
final CascadingMenuInfo parentInfo;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment