openui5 icon indicating copy to clipboard operation
openui5 copied to clipboard

ResponsivePopover not rendered within the visible Gantt Chart

Open flotxi opened this issue 5 years ago • 4 comments

OpenUI5 version: 1.71.27

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

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

URL (minimal example if possible):

Steps to reproduce the problem:

  1. Use a Ganttchart example and have a shape larger than the displayed timerange
  2. Implement the Ganttchart´s ShapeMouseEnter event and openby ResponsivePopover on the shape 3.

What is the expected result? I expected the Popover to be shown above the Ganttshape in the Gantt Chart image

What happens instead? The Popover was shown above the shape BUT not in the Ganttchart area but above the table image

Any other information? (attach screenshot if possible) Minicode of the ShapeMousEnter Handler: handleShapeMouseEnter: function (oEvent) { var oTarget = oEvent.getParameter("shape"); this._oTooltip.openBy(oTarget); }, Popover View: image

flotxi avatar Feb 19 '21 08:02 flotxi

Hello @flotxi , Thank you for sharing this finding. I've created an internal incident 2180122181. The status of the issue will be updated here in GitHub. Regards, Oliver

stoyanovski avatar Feb 22 '21 12:02 stoyanovski

Hello @flotxi ,

The issue here is the Popup has been opened on the Shape. On each zoomlevel the size of the Shape keeps on increasing causing the popup to appear on top of the table on an increased zoomLevel.

You would need to create a placeholder for the popup in order for the popup to be displayed correctly.

You can refer the below sample for the same. The above ganttChart has a Responsive Popover https://sapui5.hana.ondemand.com/test-resources/sap/gantt/simple/GanttChart.html

Thanks, Ashwin

AshwinKumarBolar avatar Feb 24 '21 09:02 AshwinKumarBolar

Hi @AshwinKumarBolar,

thank you very much for the solution and explanation. This works like a charm. For me the issue is solved. :)

Best regards, Florian

flotxi avatar Feb 25 '21 06:02 flotxi

Then I think we can close this issue as 'solved'.

codeworrior avatar Feb 25 '21 07:02 codeworrior