0

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

Hi.

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
1

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

cor3000 gravatar image cor3000
5262 2 7
ZK Team

updated 2020-07-07 14:48:44 +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.

https://zkfiddle.org/sample/38gj3es/1-make-whole-panel-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.

link publish delete flag offensive edit
0

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

Follow
1 follower

RSS

Stats

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

Seen: 8 times

Last updated: Jul 07

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