question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Text frame position has to be optional

See original GitHub issue

Me greetings 😃

According to my investigation the frame position properties have to be optional. If w:x and w:y specified then alignment properties are ignored (w:xAlign, w:yAlign) https://github.com/dolanmiu/docx/blob/853219d/src/file/paragraph/frame/frame-properties.ts#L32

Proof of the concept: Initial outlook image Source code image Deleted w:x & w:y image Output in a proper place image

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
dolanmiucommented, Apr 19, 2022

If w:x and w:y specified then alignment properties are ignored (w:xAlign, w:yAlign)

What about a union type?

options: IXYPositionedFrameOptions | IAlignedFrameOptions
0reactions
anti-the-socialcommented, Apr 19, 2022

Marvellous! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

(Legacy) InDesign CS3: Positioning Text in a Text Frame
NOTE: Choosing Justify will position the text evenly between the top and bottom of the frame. (Optional) If Justify is chosen, ...
Read more >
Create text and text frames in InDesign - Adobe Support
(Optional) Select Fixed Column Width to maintain column width when you resize the frame. If this option is selected, resizing the frame can ......
Read more >
Set text direction and position in a shape or text box in Word
(Optional) To remove the text box outline, right-click the text box, select Outline in the mini toolbar that appears, and choose No Outline....
Read more >
Javascript: TextFrameCollection.addAnchored Method
Creates and inserts a new text frame which is anchored to the specified text position. It has the specified horizontal alignment and a ......
Read more >
optional - CSS: Cascading Style Sheets - MDN Web Docs
The :optional CSS pseudo-class represents any , , or element that does not have the required attribute set on it.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found