monkeysource
9 years agoVisitor
focusPercent not firing for merged cells
Hi,
I'm using a MarkupGrid and for each MarkupGrid XML Component I observe focusPercent to apply an effect as focus is gained on each item. This works great until I merge some cells. For any merged cells the focusPercent is not fired at all.
Say I have 2 columns and 2 rows, and 3 content items.
I set item 1 to take up to cells as follows:
x=0
y=0
w=1
h=2
And I set Item 2:
x=1
y=0
w=1
h=1
And I set Item 3:
x=1
y=1
w=1
h=1
Now focusPercent will only fire on items 2 and 3. When I set the focus to item 1 I get no focusPercent events for that item at all.
Any idea why?
Thanks,
Ryan
I'm using a MarkupGrid and for each MarkupGrid XML Component I observe focusPercent to apply an effect as focus is gained on each item. This works great until I merge some cells. For any merged cells the focusPercent is not fired at all.
Say I have 2 columns and 2 rows, and 3 content items.
I set item 1 to take up to cells as follows:
x=0
y=0
w=1
h=2
And I set Item 2:
x=1
y=0
w=1
h=1
And I set Item 3:
x=1
y=1
w=1
h=1
Now focusPercent will only fire on items 2 and 3. When I set the focus to item 1 I get no focusPercent events for that item at all.
Any idea why?
Thanks,
Ryan