Skip to content

Commit

Permalink
Set ASTableView isAccessibilityElement, accessibilityElementsHidden p…
Browse files Browse the repository at this point in the history
…roperties from its Element's node (#1941)
  • Loading branch information
decim92 committed Dec 17, 2020
1 parent 68a1bec commit 823ac0a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/ASTableView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ - (void)setElement:(ASCollectionElement *)element
self.selectionStyle = node.selectionStyle;
self.focusStyle = node.focusStyle;
self.accessoryType = node.accessoryType;

self.isAccessibilityElement = node.isAccessibilityElement;
self.accessibilityElementsHidden = node.accessibilityElementsHidden;
// the following ensures that we clip the entire cell to it's bounds if node.clipsToBounds is set (the default)
// This is actually a workaround for a bug we are seeing in some rare cases (selected background view
// overlaps other cells if size of ASCellNode has changed.)
Expand Down

0 comments on commit 823ac0a

Please sign in to comment.