openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

sap.m.Bar not responsive

Open wombling opened this issue 12 years ago • 5 comments

Hi,

it may well be part of the design and an accepted limitation of the control,

But when bars are used (as header/footers of pages, or just as an item in a page) if the page is resized such that the content of the bar no longer fits, there is no easy way to access the overflowing content:

e.g. http://jsbin.com/juwuj/3/

image

I would expect that if a bar could not display all its content that it would implement some scrolling to allow access to the content - like the IconTabBar I've added

Or would start wrapping the content , more in the manner of the buttons that I've added under the bar in a scroll container.

In the meantime I can achieve a responsive option by styling the content of a scroll container or build my own custom bar control.

I'm pretty sure you'll flag this as an enhancement rather than a bug, but I'm not sure the sap.m.Bar is a good pattern to encourage until it becomes responsive.

Thanks,

Chris

wombling avatar Apr 18 '14 04:04 wombling

Hi Chris, just a short reply because most are enjoying their Easter holidays: the Bar is not yet responsive, sorry. It's currently a limitation. A Toolbar control which handles the size of the child elements and thus is to some degree responsive is currently being developed, but an overflow is not yet available. More probably from the owner, after the holidays.

So this is not a bug, but I let it open as enhancement request, as this is obviously a desirable feature.

Regards Andreas

akudev avatar Apr 20 '14 19:04 akudev

Thanks Andreas,

Great to hear that something more responsive is coming. In the meantime applying text-align:center to a scrollcontainer is a reasonable workaround for me.

Happy Easter,

Chris

wombling avatar Apr 21 '14 00:04 wombling

Hey guys - just saw John Patterson showing a "responsive" footer - is this now delivered? the JS Bin still doesn't work - so what's the difference?

cc @jasper07

wombling avatar Nov 19 '14 23:11 wombling

Hi,

i don't know what John Patterson showed, but we have a sample based on media queries: llink to the sample

But it is not yet available as a control

ghost avatar Nov 20 '14 10:11 ghost

Hi,

the sap.m.OverflowToolbar provides a responsive behavior for buttons and will be available with v1.28.

Control: https://github.com/SAP/openui5/blob/master/src/sap.m/src/sap/m/OverflowToolbar.js

Test page: https://github.com/SAP/openui5/blob/master/src/sap.m/test/sap/m/OverflowToolbar.html

Explored sample: https://github.com/SAP/openui5/blob/master/src/sap.m/test/sap/m/demokit/sample/OverflowToolbarFooter/OverflowToolbar.view.xml https://github.com/SAP/openui5/blob/master/src/sap.m/test/sap/m/demokit/sample/OverflowToolbarFooter/OverflowToolbar.controller.js

Unfortunately there is no deployed version of 1.28, yet.

I am closing this issue as there is now a control which provides the described behavior.

Best regards, Matthias

matz3 avatar Mar 02 '15 09:03 matz3