Skip to content

EditLabelUI not scaling with text #971

Answered by planger
david-pa asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

your analysis is spot on and the sizing of the input is indeed defined in the EditLabelUI via an element style. Thus, it unfortunately cannot be overwritten via custom CSS, but only if you customize the EditLabelUi (by rebinding it in your diagram editor and overwrite the setPosition method). This is also what we did in several customer projects to optimize the label editing for certain use cases.

However, at the same time, I guess the generic behavior can be improved. So if you have suggestions for a better generic styling, please let us know or open a PR.

I would also like to add that the input box doesn't seem to be attached to the node, meaning when you zoom in/out the input box …

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@david-pa
Comment options

@planger
Comment options

Answer selected by david-pa
Comment options

You must be logged in to vote
1 reply
@planger
Comment options

Comment options

You must be logged in to vote
2 replies
@planger
Comment options

@david-pa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants