![]() Registered Member ![]()
|
I try to customize Plasma desktop, in particular to add vertically-oriented panel using javascript below:
Though the panel's height is set equal to screen height (line #5), I get wrongly sized panel: ![]() Panel on the left is what I expect to get, panel on the right is what I get instead. Here (pre-penultimate comment) and even here people faced with the same problem, but no advices were given. So what can you suggest me to solve this? It exists both in 4.10 and 4.11 KDE versions (and perhaps in earlier ones). |
![]() Administrator ![]()
|
You already appear to have a panel on the right - and you can only have one panel on each side of the screen for various reasons. In this case Plasma takes the only action it can and assigns the panel to the left side of the screen instead.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
mm i guess it's a problem that can not be solved i have spoken one time with aseigo ... about this problem and at the end, if i am not remembering bad, this limitation has been made to avoid problem with horizontal panel ....
i have created the panels just horizontal then i move them manually ..... btw if you have interested here there is a little video about my stuff that maybe could help you to write down the code .... http://www.youtube.com/watch?v=wAB1whqH9n8 |
![]() Registered Member ![]()
|
I've talked to Aaron Seigo. As far as I've understood, panel's property "height" has upper limit 255, and it can be changed via setting panel's max height equal to screen height. Max height property used to be inaccessible from plasma scripts, but recently Seigo has implemented it, so now the problem must be solvable.
nowardev, thank you for recommending Kate's snippets. Though they didn't contain what I've exactly needed, they seem to be really helpful. |
![]() Administrator ![]()
|
Thanks for the update. If you believe the issue to be resolved, please mark the topic as solved.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
It's a pity, but only minLength/maxLength properties will come with scriptingVersion ≥ 7 (there's 6th in KDE 4.11/SC 4.12), nothing for "height".
For panels created by script "height" property refers to panel vertical size, and it's still can't be set greater than 256 via script. I have no ideas how to fix that problem. UPD: In KDE 4.12 release there's plasma scriptingVersion 7 available. Also now "height" refers to panel's thickness and "length" to length/height in horizontal/vertical panels, so vertical panels work fine too. |
Registered users: Baidu [Spider], Bing [Bot], Google [Bot], Yahoo [Bot]