Skip to content

Shrinking Adjustable size shouldn't reveal HTML entities #5318

@Kebap

Description

@Kebap

Brief summary of issue / Description of requested feature:

If you shrink the title text too much, it will abbreviate in unexpected ways

Steps to reproduce the issue / Reasons for adding feature:

  1. Create an adjustable container with the following title text:
TestFrame = Adjustable.Container:new({
    name = "Test",
    x = 200, y = 200,
    padding = 2, width = 240, height = 80,
    titleText = " Just a test",
  })
  1. Grab the right edge and start pulling towards the left edge, shrinking the container slowly in size
  2. Title text will go through multiple stages like:
    1. Just a test
    2. Just a t...
    3. Jus...
    4. J...
    5. ...
    6. &nbsp...
    7. &n...
    8. &...
    9. ...
    10. finally no title text is shown

Error output / Expected result of feature

Title text should go straight from V to IX or X but never show VI, VII, VIII and alike

Extra information, such as Mudlet version, operating system and ideas for how to solve / implement:

Current PTB
image

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