0

ZKCalndar 1.0 breaking draggables

asked 2010-08-24 06:24:36 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

updated 2010-08-24 06:25:13 +0800

Hi,

When I use ZK Calendar 1.0 and <listbox> with sizeable headers, then the header resizing is broken, JS error:

_initPt is undefined
/js/zk/zk.js.dsp
Line 6
if(!window.z_dragdrop_js){z_dragdrop_j...ow.Draggable){Draggable=zDraggable}}; 

I guess it is caused by calendars.js:

zk.override(zDraggable.prototype, "initDrag", _zkdd, function (event) {
if(typeof zDraggable._dragging[this.element] != 'undefined' &&
zDraggable._dragging[this.element]) return;

Is my guess right? How to fix this problem? Why is the "initDrag" overridden in the ZK Calendar 1.0?
Thanks

delete flag offensive retag edit

3 Replies

Sort by ยป oldest newest

answered 2010-08-24 20:15:51 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

updated 2010-08-24 20:16:09 +0800

Hi xmedeko
I think that override was for fix some bug

I checked the different between the initDrag in dragdrop.js and the override initDrag in calendar.js

the override initDrag in calendar.js has below check

if (!this.element._skipped)

You can try to remove this check

link publish delete flag offensive edit

answered 2010-10-20 02:34:05 +0800

xmedeko gravatar image xmedeko
1031 1 16
http://xmedeko.blogspot.c...

Hi Jimmi,
nope, the problem is in the

zDraggables.activate(this, pointer);

the calendars.js has just

zDraggables.activate(this);

When I have changed this, then the <listbox> can resize the headers again and the ZK Calendar seems working fine, too.

link publish delete flag offensive edit

answered 2010-10-25 19:58:00 +0800

jimmyshiau gravatar image jimmyshiau
4921 5
http://www.zkoss.org/ ZK Team

OK,
I thank it is a miss part, thanks for your advice.

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2010-08-24 06:24:36 +0800

Seen: 253 times

Last updated: Oct 25 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More