-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello,
i have a problem dragging multiple elements from one tree to another. Thanks to the ZKoss support I was able to implement a workaround to drag elements with its entire label length. But, when I drag multiple elements their label will be cut after a certain line width. Unfortunatley the workaround only works if I drag one element.
<style> .z-drop-content{ width:auto; height: auto; } </style>
<listbox id="left" height="250px" width="200px" multiple="true" ondrop="move(event.dragged)" droppable="true" oddrowsclass="non-odd"> <listitem draggable="true" droppable="true" ondrop="move(event.dragged)"> <listcell src="/widgets/effects/drag_n_drop/img/document.png" label="1234567891234 56789"/> </listitem>
<listitem draggable="true" droppable="true" ondrop="move(event.dragged)"> <listcell src="/widgets/effects/drag_n_drop/img/document.png" label="ZK Mobileccccccccccccccccccccc"/> </listitem> </listbox>
Does anybody know how to resolve that issue?
Best regards and thank you, Ethernut
Hi, maybe you could try to change the behaviour on client side?
https://www.zkoss.org/wiki/ZK_Client-side_Reference/Customization/Drag-and-Drop_Effects (https://www.zkoss.org/wiki/ZKClient-sideReference/Customization/Drag-and-Drop_Effects)
check Widget.cloneDrag_(Draggable, Offset)
Thanks
Asked: 2016-05-31 10:45:59 +0800
Seen: 16 times
Last updated: Jun 01 '16