Skip to content

Warning bubbles do not resize on text resize #3706

@BeksOmega

Description

@BeksOmega

Describe the bug

If you pass a new text size to the theme the text on a warning bubble will resize but the warning bubble itself will not resize.
Size-Warnings

To Reproduce

Steps to reproduce the behavior:

  1. Load the following xml to the playground.
<xml xmlns="https://developers.google.com/blockly/xml">
  <block type="controls_flow_statements">
    <field name="FLOW">BREAK</field>
  </block>
</xml>
  1. Open the warning.
  2. Use the text size slider to change the text size.

Expected behavior

The warning bubble should probably update its size automatically.

Here are a few ideas from @samelhusseini from here:

This one's a little tricky as icons don't have render loops.

  • We could add render loops, and re-render on a theme change.
  • reset visibility for warnings that are open. (ie: set to false, and back to true, which would dispose and recreate the bubble)
  • close all warnings when we need to re-render the workspace.

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions