Registered Member
|
I want to create a vertical panel in my init js, but all i can get is horizontal panel! Can i create a vertical one?
Thanks... |
Registered Member
|
Aaron J. Seigo said: <<or you could do "desktop console" in krunner, then enter something like this in there:
panel = new Panel panel.location = 'left'>> But it creates horizontal panel!!!!! |
Registered Member
|
I was wrong!
creates vertical panel, but its width is equal to screen width by default, so it looks like horizontal panel! |
Administrator
|
EDIT:
I looked into the issue. To make your panel smaller, you need to do something like this (it'll make it 100 px long):
This should do the trick. Notice that "length" for vertical panels means the height and "height" the length of the panel. (i.e., they are swapped compared to horizontal panels).
"Violence is the last refuge of the incompetent."
Plasma FAQ maintainer - Plasma programming with Python |
Registered Member
|
Thank you, i've understood it. With default length and height vertical panel looks like horizontal - that was my problem! But! There is another question. The maximum panel height i can get with init script is equal to 1/3 of my screen height (i.e. 256=768/3) even if i set panel.height=700, for example. How can i override this limit? (OS is kubuntu 10.4) (p.s.: via update script i can set height as i wish) |
Registered Member
|
There's another interesting thing. When you modify already created vertical panel (via update script) its "height" becomes its height and its "length" becomes its length (as it should be). |
Administrator
|
I suggest you email plasma-devel@kde.org asking if it's a feature or a bug. Providing sample code and showing simple test cases to reproduce would also help.
Also, what do you mean by "update script"?
"Violence is the last refuge of the incompetent."
Plasma FAQ maintainer - Plasma programming with Python |
Registered Member
|
From PlasmaDesktopScripting:
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]