Skip to content

Commit 7488406

Browse files
committed
Check for _any_ ancestors when finding width
This statement changes the width of the descendants block when there are also ancestors. This was relying on `direct_ancestors`, which is particular data required for displaying `all_ancestors`. This checks `all_ancestors` instead, which is more pertinent.
1 parent 90630d3 commit 7488406

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cbv/templates/cbv/klass_detail.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ <h2>Ancestors (<abbr title="Method Resolution Order">MRO</abbr>)</h2>
8383
{% endif %}
8484

8585
{% if all_children %}
86-
<div id="descendants" class="span{% if direct_ancestors %}8{% else %}12{% endif %}">
86+
<div id="descendants" class="span{% if all_ancestors %}8{% else %}12{% endif %}">
8787
<h2>Descendants</h2>
8888
<ul class="unstyled">
8989
{% for child in all_children %}

0 commit comments

Comments
 (0)