lobipanel icon indicating copy to clipboard operation
lobipanel copied to clipboard

Suggestion: Docking of unpinned panels

Open geoff-ellison opened this issue 8 years ago • 0 comments

(posting here as requested by @arboshiki)

What an excellent plugin! This is great work, and very much appreciated.

There's a feature that I'd love to see: the ability to "dock" an unpinned panel to a given pre-set position of the viewport.

This could be exposed by having an option called "dock" and a method called "setDock", which could have the following values:

  • "top-left": places the panel up against the top-left corner of the viewport
  • "top": places the panel at the top of the viewport, horizontally centred
  • "top-full": places the panel at the top of the viewport, occupying full width
  • "top-right": places the panel against the top-right corner of the viewport
  • "right": places the panel at the right of the viewport, vertically centred
  • "right-full": places the panel at the right of the viewport, occupying full height
  • "bottom-right": places the panel against the bottom-right corner of the viewport
  • "bottom": places the panel at the bottom of the viewport, horizontally centred
  • "bottom-full": places the panel at the bottom of the viewport, occupying full width
  • "bottom-left": places the panel against the bottom-left corner of the viewport
  • "left": places the panel at the left of the viewport, vertically centred
  • "left-full": places the panel at the left of the viewport, occupying full height

There could also be some helpful additional docks, such as:

  • "dialog": places the dialog horizontally centred, with its top 1/3 from top of viewport

It might also be a good idea to have an option to enforce a dock setting (lockDock?), so that a panel could not be resized on whichever sides that are docked.

Cheers

Geoff.

geoff-ellison avatar Feb 03 '17 23:02 geoff-ellison