Skip to content

Draggable options doesn't work on StickyWin.PointyTip. Included Fix #68

Description

@appaulo14

What Steps will reproduce the problem?:
Create a StickyWin.PointyTip with the "draggable" option set to true.

What is the expected output? What do you see instead?
The PointyTip box should be draggable. It is not.

Fix
I used Class.refactor to put a class to makeDraggable() and makeResizable() into the constructor.

StickyWin.PointyTip = Class.refactor(StickyWin.PointyTip,{
'initialize': function(){
this.previous.apply(this, arguments);
if (this.options.draggable) this.makeDraggable();
if (this.options.resizable) this.makeResizable();
}
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions