[Laszlo-user] context menu separator on linux

taocore taocore at laszlomail.com
Thu Sep 13 00:11:06 PDT 2007


The contextmenuitem which called setSeparatorBefore(true) does not work 
on linux with FF2. It works on widows xp with FF2.

Laszlo version: 4.0.2

Try the code below, the item2 does not work. If you comment out 
setSeparatorBefore(true), it works well.


<canvas debug="true">

   <view width="100" height="100" bgcolor="red">

     <method event="oninit">

        var cm = new LzContextMenu();

        var item1 = cm.makeMenuItem('item1', new LzDelegate(this, 
'typesth'));

        cm.addItem(item1);

        var item2 = cm.makeMenuItem('item2', new LzDelegate(this, 
'typesth'));

        cm.addItem(item2);

        item2.setSeparatorBefore(true);

        this.setContextMenu(cm);

     </method>

     <method name="typesth">

       Debug.write('type something');

     </method>

   </view>

</canvas>



taocore
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070913/f2c38668/attachment.html


More information about the Laszlo-user mailing list