openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

Overflow issue with sap.m.MenuButton and sap.m.OverflowToolbar

Open luciencooper opened this issue 10 years ago • 1 comments

OpenUI5 version: 1.40.8

Browser/version (+device/version): Google Chrome

Any other tested browsers/devices(OK/FAIL): IE 11 (FAIL)

URL (minimal example if possible): https://jsfiddle.net/2va1omz7/

Steps to reproduce the problem:

  1. Resize the output pane

What is the expected result? The same overflow behavior as sap.m.Button would be observed

What happens instead? The sap.m.MenuButton controls do not overflow.

luciencooper avatar Oct 27 '16 14:10 luciencooper

Hi @LucienCooper,

Thanks for your ticket! Unfortunately this is not very well document it but not all controls can overflow inside m.OverflowToolbar. All supported controls are in this file https://github.com/SAP/openui5/blob/master/src/sap.m/src/sap/m/OverflowToolbarAssociativePopoverControls.js this static property holds all supported controls OverflowToolbarAssociativePopoverControls._mSupportedControls. If control in this array has property "canOverflow: true," so it can overflow.

Unfortunately sap.m.MenuButton is not part of this list.

I will discuss with the appropriate people to add them to the control documentation.

Kind regards, Petyo (openUI5 Dispatcher)

PetyoKostakov avatar Oct 28 '16 07:10 PetyoKostakov