diff options
author | Hans Hagen <pragma@wxs.nl> | 2019-02-24 17:41:43 +0100 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2019-02-24 17:41:43 +0100 |
commit | b55beadd32489008a75cf46c9eeb22aa20764cc7 (patch) | |
tree | f218b3c60a56af20a76dc01e09c8f95a0bf5ec68 /tex/context/base/mkiv/node-rul.lua | |
parent | 7b271baae19db1528fbe6621bdf50af89a5a336b (diff) | |
download | context-b55beadd32489008a75cf46c9eeb22aa20764cc7.tar.gz |
2019-02-24 17:31:00
Diffstat (limited to 'tex/context/base/mkiv/node-rul.lua')
-rw-r--r-- | tex/context/base/mkiv/node-rul.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tex/context/base/mkiv/node-rul.lua b/tex/context/base/mkiv/node-rul.lua index ea0e5c7a0..1f79a5633 100644 --- a/tex/context/base/mkiv/node-rul.lua +++ b/tex/context/base/mkiv/node-rul.lua @@ -48,6 +48,7 @@ local setattrlist = nuts.setattrlist local setshift = nuts.setshift local getwidth = nuts.getwidth local setwidth = nuts.setwidth +local setoffsets = nuts.setoffsets local setfield = nuts.setfield local isglyph = nuts.isglyph @@ -754,19 +755,22 @@ interfaces.implement { { "width", "dimension" }, { "height", "dimension" }, { "depth", "dimension" }, + { "xoffset", "dimension" }, + { "yoffset", "dimension" }, { "left", "dimension" }, { "right", "dimension" }, }, }, actions = function(t) - local l = t.left - local r = t.right local n = new_rule( t.width, t.height, t.depth ) setattrlist(n,true) + setoffsets(n,t.xoffset,t.yoffset) + local l = t.left + local r = t.right if l then setfield(n,"left",l) end |