Drag a panel for any part of them not just for the title, in a portal layout

asked 2020-07-06 22:04:49 +0800

andreasboos gravatar image andreasboos
105 3


Can I move a panel into Portallayout dragging by any part of it?

We trying to use Portallayout kanban in a tablet and drag a panel it's too hard for persons with thick fingers. It's really hard to do.

So, Can I do something about this? I think if I could drag the entiry panel (panelchildren contents too) this would be solved.

delete flag offensive retag edit

2 Answers

Sort by ยป oldest newest most voted

answered 2020-07-07 14:47:18 +0800

cor3000 gravatar image cor3000
6280 2 7

updated 2020-12-14 09:52:45 +0800

Here a runnable example overriding the _initDrag method of the zkmax.layout.Portallayout widget class.

Instead of initializing the drag'n'drop only for the panel-header it makes the whole panel element - incl. header and body - draggable.


Elements inside the panel should remain clickable (e.g. a button).

One side effect is, that now there's less space to scroll the screen via touch-drag. So you need to supply enough spacing between the panels so that users with "thick fingers" will still find some space to scroll the entire screen area.

While testing this I noticed a problem on iOS/ipadOS causing heavy flickering while dragging a panel, so I posted ZK-4617 with a workaround - also included in the example above.

If there are problems please let us know or contact our support.

UPDATE 2020-12-14: ZK-4617 will be fixed in 9.5.1

link publish delete flag offensive edit

answered 2020-07-07 23:05:16 +0800

andreasboos gravatar image andreasboos
105 3

updated 2020-07-07 23:06:05 +0800

Hi cor3000.

Worked perfectly.

I ask me if this cann't become turn into a generic option of Portallayout. For mobile, I think it's very necessary.

Thank you very much.

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2020-07-06 22:04:49 +0800

Seen: 11 times

Last updated: Dec 14 '20

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More