-
1. Re: button overlapping & nested button issues
vivekuma Oct 7, 2014 2:00 AM (in response to ianloh123)Hi,
Fix for Issue#1:
a. Add sym.setVariable("count", 200); to compositionReady event handler.
b. Then add the below code for click event handler for each symbol:
var count = sym.getVariable("count");
//console.log(count);
sym.getSymbol("btn1").getSymbolElement().css({"z-index":count}); //use btn1 or btn2 accordingly for respective symbol
sym.setVariable("count", count+1);
Fix for Issue#2:
Add e.stopPropagation(); to click event handler for both symbol mailTo buttons which will prevent the event propagation from mailTo btn to its parent.
hope that helps,
Vivekuma
-
2. Re: button overlapping & nested button issues
ianloh123 Oct 7, 2014 2:12 AM (in response to vivekuma)Speechless...
Thank you SO MUCH, vivekuma
-
3. Re: button overlapping & nested button issues
ianloh123 Oct 7, 2014 2:14 AM (in response to vivekuma)Just a question vivekuma, if i may - is the 200 value the max number of "layers" it applies to, by any chance?
-
4. Re: button overlapping & nested button issues
vivekuma Oct 7, 2014 3:43 AM (in response to ianloh123)No, there is nothing called max number of layers. You can use any number, but it's always advisable to pick a large number.
I am glad, it worked for you .
-
5. Re: button overlapping & nested button issues
ianloh123 Oct 7, 2014 11:01 PM (in response to ianloh123)here's the updated project if anyone wants it.



