简体   繁体   中英

jointjs incompatible with jquery layout plugin

I have a problem using jointjs and jquery-layout. I can only use one of those, If I use both, the panel resizing doesn't work. There is someone that have the same/similar problem? and know how to solve it?

this doesn't work at all

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"</script>
<script src="jquery-ui.min.js"></script>
<script src="js/jquery.layout-latest.js"></script>
<script src="joint.js"></script>

If I invert jquery-layout with jointjs it works, but without resizing.

Thanks so much

Try to use the JointJS clean version (without jQuery, Lodash, Backbone, Geometry and Vectorizer). You can get this version (together with Geometry and Vectorizer) here: http://jointjs.com/download . Then download Lodash ( https://lodash.com/ ) and Backbone ( http://backbonejs.org/ ) and load everything in the following order:

  • jquery
  • jquery ui
  • jquery layout
  • lodash
  • backbone
  • geometry
  • vectorizer
  • jointjs clean

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM