Yes, problem was occuring bec. of "align=right", when I remove it on
videoview, works fine. But why align property affects on the layout
constraint. I am saying it to locate on the right on itS own parent
view.  This shouldnT affect on the main layout, isnT it? Or I am
confusing something.
Thanks

2010/4/17 P T Withington <[email protected]>:
> Just a guess but I think align="right" will override your layout.
>
> On Apr 17, 2010, at 9:36, cem sonmez <[email protected]> wrote:
>
> Hi
> I have defined a layout constraint in the code below :
>
> <canvas width="100%" height="400">
>
>     <view align="center">
>         <simplelayout axis="x" spacing="40" /> talking about this constraint
>         <view name="topView">
>             <simplelayout spacing="7"/>
>             <button>Click Me
>                 <handler name="onmouseover">
>                     parent.innerView.setAttribute('visible', true);
>                 </handler>
>             </button>
>             <view name="innerView" visible="false">
>                 <simplelayout axis="x" spacing="5" />
>                 <edittext width="60" />
>                 <text onclick="parent.setAttribute('visible',
> false)">cancel</text>
>             </view>
>         </view>
>
>         <view name="bottomView">
>             <simplelayout axis="y" spacing="10" />
>             <button name="showMyCam"
>                 align="right" onclick="camm.setAttribute('show', true)">Show
> Cam
>             </button>
>             <videoview id="broadcasting" width="220" height="200"
> type="rtmp" align="right">
>                 <camera id="camm" capturing="true"/>
>             </videoview>
>         </view>
>     </view>
>
> </canvas>
>
> It is working well when I click the "Click Me" button. But if I click the
> "Show Cam" button. Videoview and topView is overlapping, constraint does not
> work.
> I think something I am missing, but couldnT find where I am doing mistake.
> Can anyone help me.
> Thanks in advance
> Regards
>
> --
> Cem SONMEZ
>
>



-- 
Cem SONMEZ

Reply via email to