@@ -217,8 +217,8 @@ return function (self, ast, box, parentHl,
217217 end
218218 table.insert (root .relativeBoxes , {
219219 image = image ,
220- width = ast :getWidth () + ast :marginLeft () + ast :marginRight (),
221- height = ast :getHeight () + ast :marginBottom () + ast :marginTop (),
220+ -- width = ast:getWidth() + ast:marginLeft() + ast:marginRight(),
221+ -- height = ast:getHeight() + ast:marginBottom() + ast:marginTop(),
222222 left = ast .boundBox .leftX - ast :marginLeft () - 1 ,
223223 top = ast .boundBox .topY - ast :marginTop () - 1 ,
224224 z = ast :_firstStyleValue (" z-index" , 0 )
@@ -265,8 +265,8 @@ return function (self, ast, box, parentHl,
265265 local actualImage = lb .box_image_clone (pr .ctx , ctx , img )
266266 table.insert (root .relativeBoxes , {
267267 image = actualImage ,
268- width = width ,
269- height = height ,
268+ -- width = width,
269+ -- height = height,
270270 left = posX ,
271271 top = posY ,
272272 z = v :_firstStyleValue (" z-index" , 0 )
@@ -284,14 +284,14 @@ return function (self, ast, box, parentHl,
284284 pr :render ()
285285 for _ , data in ipairs (ast .relativeBoxes ) do
286286 lb .box_image_render_over (pr .ctx , data .image , data .left , data .top )
287- local newWidth = data .left + data .width - box :getOffsetX () + 1
288- local newHeight = data .top + data .height - box :getOffsetY () + 1
289- if newWidth > box :getWidth () then
290- box :setWidth (newWidth )
291- end
292- if newHeight > box :getHeight () then
293- box :setWidth (newHeight )
294- end
287+ -- local newWidth = data.left + data.width - box:getOffsetX() + 1
288+ -- local newHeight = data.top + data.height - box:getOffsetY() + 1
289+ -- if newWidth > box:getWidth() then
290+ -- box:setWidth(newWidth)
291+ -- end
292+ -- if newHeight > box:getHeight() then
293+ -- box:setWidth(newHeight)
294+ -- end
295295 end
296296 pr = p .noopPartialRendered ()
297297 end
0 commit comments