Comments (12)
Select the cell, not the text, then click on the alignment button.
from drawio.
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.
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.
You are welcome to submit a PR for it.
from drawio.
Yeah, we're not able to format whilst editing, currently.
from drawio.
@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.
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.
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.
Oh, I see why this is done this way.
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.
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.
This issue should be fixed.
from drawio.
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...
from drawio.
Related Issues (20)
- Just a question request
- Add URL parameter to the viewer to select elements with specific tags
- Excess event listeners affecting the performance
- Sharepoint folder picker - search or better organization HOT 2
- Feature: Allow embedding one page in another HOT 5
- Most themes has been removed in self-hosted environment
- Kubernetes Shapes do not show any labels correctly - 20240507 HOT 1
- Unable to download entire diagram in single page as PDF in v24.3.1 online or local app | Working on version v24.2.5 HOT 3
- Move PDF from Export to Save HOT 2
- how to open mermaid2drawio function?
- Character error on Ubuntu 24.04 HOT 2
- Confluence attachments files to be renamed when you rename the drawing file
- Math is not rendered consistently HOT 1
- Project name wrong on integrations page HOT 2
- Allows changing text case
- Using freeform drawing on an iPad can cause the canvas to scale and result in misaligned drawing positions
- Application (diagrams.net) is disabled HOT 1
- Allow disabling draw.io default templates
- Warning on MacOS: Secure coding is automatically enabled for restorable state HOT 4
- Diagrams saved in SVG format are minimized and so they are not correcly versioned by GIT
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drawio.