Skip to content

ImageEditPlugin: Image wrapper 'text-bottom' vertical alignment #3145

@liangdrime

Description

@liangdrime

Describe the bug
When using ImageEidtPlugin, we will add a text-bottom vertical alignment for the image wrapper while updating it. It leads a result that the content below the image will be pushed down after selecting the image.

export function updateWrapper {
    ...
    setWrapperSizeDimensions(wrapper, image, visibleWidth, visibleHeight);
    wrapper.style.verticalAlign = 'text-bottom';
    ...
}

Could you please share with us on what's the purpose for this alignment style? Can we remove it if it's not by design?

Reproduce Steps

  1. Insert an image in the editor.
  2. Input any text at the next line of the image.
  3. Select the image and observe the position of the text below the image.

Videos
// Repro on OWA:

ImageEditBug.mov

Device Information
It can be reproduced both on RoosterJS Demo and OWA (Chrome and Safari).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions