mootools / mootools-core

MooTools Core Repository
https://mootools.net
2.65k stars 507 forks source link

Mootools <1.3 and Interacts.js Resizing #2731

Open rizwanhussain-vteams opened 9 years ago

rizwanhussain-vteams commented 9 years ago

The resizing is not working when used with Mootools <1.3. Here is a fiddle with the demo : http://jsfiddle.net/2vkw52bk

It seems to work fine with mootools 1.3+ .

I am finding it hard to debug since there are no errors.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26230027-mootools-1-3-and-interacts-js-resizing?utm_campaign=plugin&utm_content=tracker%2F22067&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F22067&utm_medium=issues&utm_source=github).
SergioCrisostomo commented 9 years ago

@rizwanhussain-vteams the resizing works good with <1.3. This problem is actually related with the new website and the fact that jsFiddle is pointing its 1.2.6 version to a url that is inactive.

So your fiddle workds good (http://jsfiddle.net/2vkw52bk/1/), and there is already a fix suggested for this just not merged yet. I was not aware myself jsFiddle was using this functionality. One more reason for us to get that link back working.

I close this now, please reopen if your issue is not solved by my jsFiddle.

rizwanhussain-vteams commented 9 years ago

@SergioCrisostomo I was having this problem in Joomla 1.x which uses Mootools 1.12 and in there the mootools script was added in the head tag which is why i tried to replicate the same scenario in the fiddle as well. Also, 1.2.x was the lowest version available in jsfiddle. Anyways, i have created another fiddle demonstrating the issue in a better way : http://jsfiddle.net/b4beaoda/ I have added the mootools script inline as you did and as you can see the script is the same version as well i.e. 1.12 which is causing problem on actual website. I hope this information helps :)

rizwanhussain-vteams commented 9 years ago

@SergioCrisostomo Let's re-open this thread. I have already posted at interactjs and they say its a mootools issue.

SergioCrisostomo commented 9 years ago

@rizwanhussain-vteams your new fiddle (http://jsfiddle.net/b4beaoda/) works for me in Chrome. Can you explain what should the behavior be and what is broken?

rizwanhussain-vteams commented 9 years ago

@SergioCrisostomo Sorry mate. Wrong link : Here you go http://jsfiddle.net/b4beaoda/1/

SergioCrisostomo commented 9 years ago

@rizwanhussain-vteams I'm not so familiar with that generation MooTools. I noticed that there appears to be a conflict in window.Element. Please check this version: http://jsfiddle.net/7kz4dnxu/

This patch might ofcourse break other MooTools code but might point you in the right direction. Maybe someone else can give more feedback or patch for this old version of MooTools.