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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...