Skip to content

State name text won't wrap #2813

@ghillebrand

Description

@ghillebrand

Describe the bug

When trying to resize a State so that the text wraps, it always goes back to its original width.
The text wraps whilst the object is being resized, but as soon as the mouse stops moving, it jumps back to all-on-one-line

To Reproduce

Steps to reproduce the behaviour:

  1. Create a State and name it with a few words like Biologically Primary Information
    
  2. Try to resize it by dragging the bottom right handle so the width is smaller
    
  3. The width always reverts to the original width as soon as the mouse stops moving, even before the left button is released.
    

No errors reported - see Version section

Expected behaviour

The text should wrap on spaces

Screenshots

image

OS

  • Linux (Please put in notes the specific distro)
  • macOS
  • Windows

Version

Version of Gaphor:

Operating System:       Windows (10)
Display:                GdkWin32Display
Python version:         3.11.5
GTK version:            4.12.0
Adwaita version:        1.3.1
GtkSourceView version:  5.8.0
Cairo version:          1.17.8
Pango version:          1.50.14
PyGObject version:      3.44.1
Pycairo version:        1.24.0
pygit2/libgit2 version: 1.12.2  / 1.6.4


No errors have been intercepted. We’re good.

Additional information

This seems closely related to this bug reported on Actions here
Adding a word-wrap option to the CSS did not help:

  /* line-style: sloppy 0.3; */
 word-wrap: break-word;
 /*background-color: coral; */
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue in the application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions