How to center a mydbr_popupframe

(2 posts) (2 voices)
  • Started by
  • Latest reply from myDBR Team
  1., Member


    .mydbr_popupframe {
    left: 35%;

    This option is for a large popupframe to far right. That works great with a left: 10%;
    However, with a small popup, that is way to far left to be pretty.
    Preferably I would apply some code to center the popupframe with a max width of 95% of the windowsize.

    I found this
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50px);
    width: 50%;
    But than the stickyheader/floatingheader misaligns when scrolling through a result set.

    Do you have an idea how I can apply such a solution.

  2. myDBR Team, Key Master

    myDBR does not try to center the popup as it would most likely block the view for the underlying content. myDBR tries to place the popup bassed on it's size so pure CSS definition will not work (left: 35%; begin a starting point for the positioning). Furthermore, placement of the popup depends on the device being used (mobile/tablet mobile/tablet view).

    The latest build handles very wide popup's bit better.

    myDBR Team


You must log in to post.