Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

1513 dynamic resizing labels#2345

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
timonlazarviadee wants to merge6 commits intobpmn-io:develop
base:develop
Choose a base branch
Loading
fromtimonlazarviadee:1513-dynamic-resizing-labels

Conversation

timonlazarviadee
Copy link

@timonlazarviadeetimonlazarviadee commentedAug 26, 2025
edited by barmac
Loading

Proposed Changes

This pull request concerns dynamic resizing of text fields. To this end, labels have been made resizable and code has been added that adjusts the height of the text to match the width.

Closes#1513

Visual demo

2025-08-26 09-48-39

Checklist

To ensure you provided everything we need to look at your PR:

  • Brief textual description of the changes present
  • Visual demo attached
  • Steps to try out present, i.e.using the@bpmn-io/sr tool
  • Related issue linked viaCloses {LINK_TO_ISSUE} orRelated to {LINK_TO_ISSUE}

@CLAassistant
Copy link

CLAassistant commentedAug 26, 2025
edited
Loading

CLA assistant check
All committers have signed the CLA.

});

functiongetTextHeightForTextAnnotation(event){
returnevent.gfx.firstChild.lastChild.lastChild.y.animVal[0].value;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I'm not sure how to make this look nicer. If you know another way, please show me with a pointer.

@barmac
Copy link
Member

Hi, thanks for your contribution. We will look into this soon.

@barmacbarmac added the needs reviewReview pending labelSep 4, 2025
@nikkunikku requested review froma team,barmac andphilippfromme and removed request fora teamSeptember 10, 2025 06:56
@bpmn-io-tasksbpmn-io-tasksbot removed the needs reviewReview pending labelSep 10, 2025
@barmacbarmac added the needs reviewReview pending labelSep 10, 2025
@barmac
Copy link
Member

Some interactions don't work properly or are not intuitive, so there's still some work ahead. I'd expect that the horizontal resize snaps to the text width. The label jump on vertical resize is also unintuitive.

Screen.Recording.2025-09-10.at.11.43.31.mov

Copy link
Member

@barmacbarmac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Please add a test for horizontal resize as it's clearly not working correctly. The feature is useful, but we need to make sure it works correctly.

@bpmn-io-tasksbpmn-io-tasksbot removed the needs reviewReview pending labelSep 10, 2025
@barmacbarmac added the backlogQueued in backlog labelSep 11, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@barmacbarmacbarmac requested changes

@philippfrommephilippfrommeAwaiting requested review from philippfrommephilippfromme was automatically assigned from bpmn-io/modeling-dev

@jarekdanielakjarekdanielakAwaiting requested review from jarekdanielak

Assignees

No one assigned

Labels

backlogQueued in backlog

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Add resizing for all text elements as for TextAnnotation

3 participants

@timonlazarviadee@CLAassistant@barmac

[8]ページ先頭

©2009-2025 Movatter.jp