Jump to content

draggable & resizable


hph

Recommended Posts

If I set a UniSimplePanel to draggable and resizable then the resizing is not correct. If I resize the UniSimplePanel it will resize and move. If the draggable property is false then the resizing is ok.

 

My configuration:

 

UniSimplePanel1.Draggable.Enabled := True;

 

UniSimplePanel1 -> ClientEvents -> ExtEvents -> added fn:

function added(sender, container, pos, eOpts)
{
  sender.resizable={
     minWidth: 160,
     minHeight: 120,
     dynamic: true,
     pinned: true,
     handles: 's e se',
     heightIncrement: 20,
     widthIncrement: 20
  }
} 

thanks for any help.

 

best regards

hanspeter

Link to comment
Share on other sites

Hi,

 

Good question!

 

For now can you try this?!:

 

UniSimplePanel -> ClientEvents -> ExtEvents -> afterrender fn:

function afterrender(sender, eOpts)
{
    var me = sender;
    Ext.onReady(function() {
        if (me.dd) {
            me.dd.addInvalidHandleClass('x-resizable-handle')
        }
    });
}

Best regards.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...