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)
- Make "Publish" for files stored on Gitlab the same as for files stored on Google Drive HOT 6
- Rotated Text for Elements
- PDF export functionality not respecting "Crop" setting HOT 5
- Google doc add on: Imported diagrams are all grey HOT 3
- Merging cells with a background colour results in a set of cells with two background colours
- Google Doc integration adds too much space around embedded image HOT 3
- Google doc add on: Imported diagrams are not cropped correctly HOT 1
- Extra Padding around diagram when exporting to PDF HOT 2
- Secondary development of drawio
- Allow https://app.diagrams.net/#U to access private gitlab pages
- Export single page plot as PDF but get multiple pages output HOT 3
- Not a diagram file (error on line 180 at column 75128: AttValue: ' expected) HOT 5
- Incorrect table cell size when changing units to mm HOT 1
- export PDF with extra background part HOT 20
- placeholders %height% %width% %length% are not showing in mm (unit set on view > unit like inch, m, mm ...)
- Color picker sends cursor to left side when exits right while pressing down
- Please change Increase/decrease font size shortcut
- Just a question request
- Add URL parameter to the viewer to select elements with specific tags
- Stuck in full screen after closing flatpak while in full screen
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.