jquery ui resizable custom handle error

前端 未结 2 797
独厮守ぢ
独厮守ぢ 2021-01-28 06:38

Im trying to get a custom handle work with jquery ui resizable widget, but when I use the handles option to pass in a jquery reference to another element, it fails. From what Iv

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-28 07:20

    I found a workaround.

    By setting the handles option to null, and setting the classes myself, I got my custom handle to work. This required some investigation in the jquery ui code to figure out.

    left
    center
    right
    ​ $('.layer').resizable({ handles: null }); ​

    http://jsfiddle.net/MatteS75/3dwVp/7/

    However, I do think this is a jquery ui bug, releated to this question: overriding a jquery ui widget string option with an object

提交回复
热议问题