PDA

View Full Version : selector bug?


wcwilson
02-11-2003, 09:14 PM
Hi,

If you run the attached contacts.lzx you will see that I added a view underneath the datarows that I used to show some summary data for the currently selected contact (not pretty, but I just wanted to see how to do it). However, one strange thing happens: clicking on that view underneath the datarows actually selects a row of data (data for which I display in the view). Is this a bug or did I set up my views incorrectly? WOuld you set this up differently?

I actually had to add another layer of views to make that work, so maybe I made a mistake, but it seems like it might be a bug.

--Wayne

antun
02-11-2003, 09:37 PM
Hey Wayne

Actually you've snagged a common problem. If a view is not clickable and lives above a clickable one, and you click the nonclickable view, the click will travel through the unclickable view and hit the first clickable view it finds. Say that five times! In this case the unclickable view is your grey box, and the clickable view is on of the replicated rows of people beneath it.

A quick solution is to make the whole displayselection view clickable to trap the clicks.


<view name="displaysection" id="displaysection" height="45"
width="immediateParent.width"
bgcolor="#cccccc" valign="bottom" clickable="true">


This is an issue with the Flash runtime.

Take care,

Antun