Uploaded image for project: 'ZK Calendar'
  1. ZK Calendar
  2. ZKCAL-64

Dragging CalendarEvent not work properly within borderlayout component

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • 3.0.0
    • 2.1.5
    • Security Level: Jimmy
    • None

      Reproducible sample:

      <zk>
      	<zscript><![CDATA[
      	import org.zkoss.calendar.impl.SimpleCalendarEvent;
      	import org.zkoss.calendar.impl.SimpleCalendarModel;
      	import java.util.Calendar;
      	
      	public void init() {
      		SimpleCalendarModel model = new SimpleCalendarModel();
      		SimpleCalendarEvent event = new SimpleCalendarEvent();
      		Calendar cal = Calendar.getInstance();
      		cal.set(Calendar.MINUTE, 0);
      		cal.set(Calendar.SECOND, 0);
      		event.setBeginDate(cal.getTime());
      		cal.add(Calendar.HOUR_OF_DAY, 10);
      		event.setEndDate(cal.getTime());
      		model.add(event);
      		mycal.setModel(model);
      	}
      	]]></zscript>
      	<borderlayout>
      		<center autoscroll="true">
      			<calendars id="mycal" onCreate="init()" width="2000px" height="2000px"/>
      		</center>
      	</borderlayout>
      </zk>
      

      Excepted: Ghost of the dragged event should followed by mouse position.
      Actual: Ghost of the dragged event jumped to wrong position.

            hawk hawk
            vincentjian vincentjian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: