cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 Position of QuickView fragment

mario_fliegner
Explorer
0 Kudos

Hi there,

regarding the following example:

https://sapui5.hana.ondemand.com/sdk/explored.html#/sample/sap.m.sample.QuickView/preview

How I'm able to set the position of the QuickView fragment that is opened by the button click? In the example above, the view gets opened at the right side of the button. This looks fine if the position of the button is on the left side of a screen. But my button is the within the <headerContent> in the upper right of a page. What happens is, that the QuickView will be opened on the right side anyway, which means that the content is displayed out of the screen:

Thanks!

Accepted Solutions (1)

Accepted Solutions (1)

mario_fliegner
Explorer
0 Kudos

Ok, got it by myself!

Just need to set the placement on the fragment.

var fragement = sap.ui.xmlfragment("ReportView.view.UserProfilePopup", this);
fragement .setPlacement(sap.m.PlacementType.Left);

BR

Answers (0)