qgis / qwc2-demo-app

QWC2 demo application
Other
240 stars 149 forks source link

get 'side' parameter for plugins with ResizeableWindow component #510

Closed danceb closed 6 months ago

danceb commented 6 months ago

Hi,

while plugins using the SideBar component have a 'side' parameter for its initial position, this is missing for plugins using the ResizeableWindow component. Is it possible to get this there, too?

I came across this, while there could be the situation, where the elements overlay each other. For instance, if the LayerTree is set to be opened on the left side and than the Identify plugin is used, this will overlay the layer tree.

The docking function (including the docking symbol) should then be related to this and the window will be docked to the configured side.

Thanks!

manisandro commented 6 months ago

The ResizeableWindow component already has a docked prop which can be one of (true, "left", "bottom", "right", "top"). true is synonymous with "left". The docking icon will reflect the specified side.

danceb commented 6 months ago

ah, found it, its called dockable. I will prepare a PR for that.