Skip to Content
0

SAPUI5 Position of QuickView fragment

Mar 02, 2017 at 11:36 AM

148

avatar image

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!

qv1.png (56.5 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Mario Fliegner Mar 02, 2017 at 12:06 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded