Giter VIP home page Giter VIP logo

Comments (12)

alderg avatar alderg commented on May 17, 2024 5

Select the cell, not the text, then click on the alignment button.

from drawio.

vekien avatar vekien commented on May 17, 2024 3

Hello,

I am confused about this ....

Select the cell, not the text, then click on the alignment button.

There is no alignment button as far as I can see when you select the cell

Yeah, we're not able to format whilst editing, currently.

Does this mean regardless of your text alignment, it isn't visually shown? When is it shown? It doesn't work if you export it, it goes back to the center.

Is the alignment just a dead option that doesn't work?

from drawio.

alderg avatar alderg commented on May 17, 2024 1

The alignmnt when text is selected is relative to the text block (ie it's ignored for a single line).
The alignment button for selected cells is in the text tab of the format panel.

from drawio.

davidjgraph avatar davidjgraph commented on May 17, 2024 1

You are welcome to submit a PR for it.

from drawio.

davidjgraph avatar davidjgraph commented on May 17, 2024

Yeah, we're not able to format whilst editing, currently.

from drawio.

jdittrich avatar jdittrich commented on May 17, 2024

@davidjgraph not formatting while editing would be also totally fine. The problem is that I can halfway do it nevertheless: The alignment buttons can be clicked, the alignment changes etc.

This would change my "what should happen" alternatively to something like: "Changing a text alignment in edit mode should not be possible. Formatting options which can't be applied (like alignment) should not cause changes, or better, be deactivated in the first place"

from drawio.

Ma-XX-oN avatar Ma-XX-oN commented on May 17, 2024

The alignmnt when text is selected is relative to the text block (ie it's ignored for a single line).

Ugh! Why is it ignored for a single line? Alignment should be available for 1 or more lines relative to the text bounding box, not just centre a text box inside of the bounding box and only allow changing the alignment inside of the text box. That is very bizarre and unexpected behaviour.

What other text formatting application does this ever occur? Why would you ever do this? Why? Why? WHY? 😱

Please correct this.

from drawio.

Ma-XX-oN avatar Ma-XX-oN commented on May 17, 2024

Ok @davidjgraph, what would the steps be to do that? I know JS, but I don't know how I would pull it down to my machine, modify it and test it there.

from drawio.

Ma-XX-oN avatar Ma-XX-oN commented on May 17, 2024

Oh, I see why this is done this way.

image

The Position states where the text is located relative to the bounding box. The image here shows it as left, so it is left of the bounding box. Center, means centre relative to the bounding box. In all cases though, the width of the bounding box is respected, regardless of where it is located relative to the bounding box.

I've never seen anything like this before. This would require a flag use the bounding box instead of the Position so as not to break older files. Or perhaps another Position, such as Bounding Box, to just use the bounding box.

from drawio.

chriswolf-nrg avatar chriswolf-nrg commented on May 17, 2024

Why is this closed? In Microsoft Visio, I can set the text alignment to be top and left-justified for a single line, inside the shape - but not with draw.io - a major show-stopper when using nested shapes.

If I select "top-left" position in the "text" tab, the text goes outside of the shape! Not what I want - I want like in Visio, that it goes to the top-left corner of the shape, still inside, with a small amount of margin.

from drawio.

alderg avatar alderg commented on May 17, 2024

This issue should be fixed.

from drawio.

MrRobboto avatar MrRobboto commented on May 17, 2024

Funny I'm just running into this now. Maybe they fixed something but from the above screenshot it looks like you could always do this in the text formatting tab with the shape selected. It's not position, it's the button above that...

image

from drawio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.