Skip to content

Text block does not update height after pasting #3291

@swissspidy

Description

@swissspidy

Bug Description

As reported in #3259:

See #3259 (comment) for where this might be happening.

Expected Behaviour

Pasting arbitrary text should create a new text block with correct height

Steps to reproduce

  1. Copy text from somewhere
  2. Click on story page
  3. Paste via keyboard
  4. Notice how newly added text block does not update its height

Screenshots

Screenshot from 2019-09-18 10-07-54


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • Pasting arbitrary text should create a new text block with correct height

Implementation brief

  • Update maybeUpdateBlockDimensions so it correctly handles pasted blocks

QA testing instructions

  1. Copy text from somewhere
  2. Click on story page
  3. Paste via keyboard ( CTRL + V)
  4. Verify height of text block is the height of the text.

Demo

Changelog entry

  • Improve calculating block dimensions when pasting text

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions