Cqoicebordel / webslice-plasmoid

Add a slice of web on your desktop. https://www.pling.com/p/998902/
http://www.cqoicebordel.net/webslice-plasmoid/
GNU Affero General Public License v3.0
31 stars 12 forks source link

Stretch plamoid to remaining space in panel #16

Closed Programie closed 4 years ago

Programie commented 5 years ago

I want to put a panel on the side of my second monitor showing only a web page in the Web Slice plasmoid. But currently, simply adding the plasmoid to the empty panel ends in the plamoid getting the same height as width. So if the panel has a width of 200 px, the plasmoid also has a width of 200 px but also has a height of 200 px. But I want the plasmoid to use the remaining space (1080 px in my case).

Example using the default URL: image

Cqoicebordel commented 5 years ago

It is weird. It's not something I have ever seen. The capture doesn't show a popup window, it's just the plasmoid directly on the desktop, right ?

Programie commented 5 years ago

The screenshot shows the Plasmoid in an empty panel.

I want to use the plasmoid to display some website to have it always in the view on the side of my screen.

Cqoicebordel commented 5 years ago

Can you try to restart plasmashell ?

Programie commented 5 years ago

Yes, I already did it (I did a full reboot). And it is still displayed in the same size.

And also just restarting plasmashell doesn't change anything.

Cqoicebordel commented 5 years ago

What is your version of Plasma, and the version of the plasmoid you are using ?

Programie commented 5 years ago

I'm using Plasma version 5.15.4 and version 1.0.1 of the plasmoid from https://store.kde.org/p/998902

Cqoicebordel commented 5 years ago

I'm on 5.16.4, but I didn't touch the code for a while now, so 5.15.4 should work fine. I was on 5.15.4 earlier this year, and didn't have any issue.

I don't suppose you are messing with the JS or any other options. So, I'm really sorry, but I have no idea why you are seeing this bug. And since I can't reproduce it, I can't fix it. I'm really sorry.

Programie commented 5 years ago

I just tried it with a Live CD of Kubuntu 19.04 and it has the same issue.

Steps to reproduce:

The result is the same as before: image

Cqoicebordel commented 5 years ago

I downloaded a VirtualBox machine (skipped the CD altogether, but got that result : screen (sorry for the slowness and the quality, my PC is oooold)

No issue here either :/

Programie commented 5 years ago

yes, resizing works fine. But I want to add the plasmoid to a panel to have it always docked on the side.

So there is no issue if I add the Webslice plasmoid to the desktop as a standalone widget. The issue only exists if added as a plasmoid to a panel.

Cqoicebordel commented 5 years ago

Aaaaah ! That explains a lot ! Sorry if I misunderstood before :)

I think that this is handled by the panel, and not by the plasmoid. From a quick search, I can't find anything. I'll look into it in the coming days, but can't guarantee anything.

Cqoicebordel commented 5 years ago

Ok, no, I can probably do something. I don't have the time right now, but I will. In the mean time, you can try fiddling directly with the plasmoid : Try to add Layout.minimumHeight: 900px on line 61 of ~/.local/share/plasma/plasmoids/cqcb.plasma.webslice/contents/ui/main.qml Beware, this will apply to all Webslices you'll use.

If it works, please tell me :)

Programie commented 5 years ago

I just tried to add Layout.minimumHeight: 900px to the main.qml but then the plasmoid can't be loaded because of a syntax error. The documentation states, the value should be a real type, so I tried it with "900" instead of "900px". Now the plasmoid loads but the property doesn't have any effect on the plasmoid height.

Cqoicebordel commented 5 years ago

Thanks for testing and for finding the correct value. I hoped it would be a quick fix.

I'll have to dig then. And again, it will take a bit of time :/

Cqoicebordel commented 4 years ago

Hi,
I just released a new version, with an experimental implementation of this feature, to fill space.

If and when you'll test it, I'm eager for some feedback :)

Programie commented 4 years ago

Hi, sorry for the late feedback.

I just tested the new version and it's working as expected after setting the option "Fill the whole width and height" in the experimental settings.

Thanks for implementing the feature! :-)

Cqoicebordel commented 4 years ago

Thanks for the feedback !!!