Skip to Content
avatar image
Former Member

SAPUI5 Position of QuickView fragment

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)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Mar 02, 2017 at 12:06 PM

    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

    Add comment
    10|10000 characters needed characters exceeded