SAP / openui5

OpenUI5 lets you build enterprise-ready web applications, responsive to all devices, running on almost any browser of your choice.
http://openui5.org
Apache License 2.0
2.95k stars 1.23k forks source link

sap.ui.commons.DatePicker: Truncated text has no ellipsis or tooltip #1033

Closed cmastrandrea closed 8 years ago

cmastrandrea commented 8 years ago

OpenUI5 version: latest

Browser/version (+device/version): all

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

URL (minimal example if possible): https://openui5.hana.ondemand.com/#test-resources/sap/ui/layout/demokit/ResponsiveGridLayout.html

User/password (if required and possible - do not post any confidential information here):

Steps to reproduce the problem:

  1. Bring up the sample page and resize the browser width so that the Date of Birth field is too narrow to show the date.

What is the expected result? Expected that when content in the field doesn't completely fit, it is shown with an ellipsis, and when hovering over the field, a tooltip would display the full contents of the field.

What happens instead? The text is truncated and there is no tooltip, leaving the user with no easy way to see the value of the field without resizing the browser, which may not be an option depending on the screen layout.

Any other information? (attach screenshot if possible)

akudev commented 8 years ago

Hi Chuck,

I forwarded this to the control owner as 1680073963, but to manage expectations: the commons library is deprecated starting with version 1.38 and the control has been like this for a long time, so we'll have to see...

Regards Andreas

akudev commented 8 years ago

Hi, the control owner response was... that this is not a specific problem of the DatePicker, but of all input fields. It's also not easy to fix this: adding a tooltip only when parts are hidden is not possible and adding it always does not help on touch devices (plus: it interferes with tooltips set by the application). On top, as I wrote, the commons controls are deprecated now with 1.38, so bigger investments are unlikely. Overall on the one hand the recommendation is to design real apps in a way where fields are not getting too small, on the other hand an improvement inside UI5 would have to be a more comprehensive one covering all kinds of controls (the problem applies to almost all controls...). I'll talk to product owners about this topic but have to close this bug report, as it will not be addressed as-is.

Regards Andreas