Skip to content

BOTTOM Anchor ad alignment issue after resize fix #13875

@dqureshiumar

Description

@dqureshiumar

There was a recent fix merged for anchor ads that corrected the incorrect div resizing: PR #13701.

However, after this fix, another issue has appeared: once the anchor ad is resized, the ad alignment is stuck to the left side of the screen instead of maintaining proper centering or expected alignment. This issues appears only in Safeframe creatives.

This does not happen in case of TOP_ANCHOR.

Steps to Reproduce:

  1. Implement an anchor ad unit with Prebid.js.
  2. Ad should be rendered inside a Safeframe
  3. Once the ad gets rendered, our resize function executes.
  4. Observe that while the height/size updates correctly (fixed in PR Core: Fixing anchor ads rendering issue #13701), the ad div snaps to the left instead of staying centered.

Expected Behavior:

The anchor ad should remain correctly aligned (centered or as per original placement) after resizing.

References:

  • Related PR: #13701
  • Original issue on incorrect resizing: #7321

Screenshot:

Image

Additional Question:

Can we support 1x1 creative resizing in the case of anchor ads?
Currently, this doesn't seem to happen. Is there a known limitation here, or something that needs to be explicitly enabled?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions