Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

  • Isomorphic
    replied
    No, sorry, this was not a patch or fix, it will not be backported.

    Leave a comment:


  • hin3x
    replied
    Hi,

    We will still be on the 3.1 for a while - is there any possibility to have the changes merged there too please?

    thanks

    Leave a comment:


  • Isomorphic
    replied
    We have now added dragResizeMove notification events, and while we were in there, an implementation of "keepInParentRect".
    This will show up in nightly builds on the 4.0d branch going forward (dated March 15 and above).

    Regards
    Isomorphic Software

    Leave a comment:


  • levi
    replied
    Hi,
    so is there an event which fires when a DrawItem is being resized when the user is dragging a knob?


    thanks,

    Leave a comment:


  • levi
    replied
    But the DragMove doesn't seem to fire when you're resizing a DrawItem (using com.smartgwt.client.types.KnobType.RESIZE). This also to prevent the user from resizing a DrawItem outside its parent DrawPane's size.

    Leave a comment:


  • Isomorphic
    replied
    No, that handle doesn't exist, you need to use DragMove.

    Leave a comment:


  • levi
    replied
    OK thanks. We'll keep it in mind :)

    Meanwhile, to do something manually, can you add a DragResizeMoveHandler on DrawItem ?

    Leave a comment:


  • Isomorphic
    replied
    There's currently no built-in feature to do this for DrawItem. There is one for Canvas (keepInParentRect).

    You should be able to implement DragMove handlers that detect whether a DrawItem is being dragged out of the DrawPane and move it back.

    Otherwise you could sponsor having the keepInParentRect behavior added for DrawItems. Just a note that it's not trivial given that not all shapes are square.

    Leave a comment:


  • levi
    started a topic Drag DrawRect but not out of DrawPane

    Drag DrawRect but not out of DrawPane

    Hi,

    I have a DrawPane with some DrawRect objects on it.
    It is possible to drag move the DrawRect objects, however, I do not want to drag the DrawRect objects out of the DrawPane. Is there a way to prevent this?


    this is with v8.3p_2013-02-13/Pro Deployment (built 2013-02-13)


    thanks,
Working...
X