Skip to content

Commit 6e1a384

Browse files
author
ArthurHub
committed
* fix GetAttributeAt not working for some elements (images/frames)
1 parent 8208866 commit 6e1a384

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Source/HtmlRenderer/Utils/DomUtils.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ public static CssBox GetCssBox(CssBox box, Point location, bool visible = true)
194194
{
195195
foreach(var childBox in box.Boxes)
196196
{
197-
if( childBox.Bounds.Contains(location) )
197+
if( CommonUtils.GetFirstValueOrDefault(box.Rectangles, box.Bounds).Contains(location) )
198198
{
199199
return GetCssBox(childBox, location) ?? childBox;
200200
}

0 commit comments

Comments
 (0)