Skip to content

Commit

Permalink
updated to fix table and block-container vertical text, metanorma/met…
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Dec 5, 2024
1 parent dd73f8e commit 1a5cf14
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ protected LayoutContext makeChildLayoutContext(LayoutContext context) {
childLC.setStackLimitBP(
context.getStackLimitBP().minus(MinOptMax.getInstance(relDims.bpd)));
childLC.setRefIPD(relDims.ipd);
childLC.setWritingMode(getBlockContainerFO().getWritingMode());
//childLC.setWritingMode(getBlockContainerFO().getWritingMode());
childLC.setWritingMode(context.getWritingMode());
return childLC;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ private void createElementsForRowGroup(LayoutContext context, int alignment,
LayoutContext childLC = LayoutContext.newInstance();
childLC.setStackLimitBP(context.getStackLimitBP()); //necessary?
childLC.setRefIPD(spanWidth);
childLC.setWritingMode(context.getWritingMode());

//Get the element list for the cell contents
List elems = primary.getCellLM().getNextKnuthElements(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ public List getNextKnuthElements(LayoutContext context, int alignment) {
LayoutManager prevLM = null; // previously active LM
while ((curLM = getChildLM()) != null) {
LayoutContext childLC = LayoutContext.newInstance();
childLC.setWritingMode(context.getWritingMode());

// curLM is a ?
childLC.setStackLimitBP(context.getStackLimitBP().minus(stackLimit));
childLC.setRefIPD(cellIPD);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ public List getNextKnuthElements(LayoutContext context, int alignment) {
stackSize));*/
childLC.setRefIPD(context.getRefIPD());
childLC.copyPendingMarksFrom(context);
childLC.setWritingMode(context.getWritingMode());

contentKnuthElements = contentLM.getNextKnuthElements(childLC, alignment);
//Set index values on elements coming from the content LM
Expand Down

0 comments on commit 1a5cf14

Please sign in to comment.