Version: (using Devel) OS: Linux Installed from: Compiled sources Mandriva packages based on 4.1.96. After update from 4.1.85 system tray has exceptionally huge empty margins. When new program is started, the whole applet becomes more side; margins remain the same. See screen shot.
Created attachment 30066 [details] Screenshot of panel in 4.1.96
this is because items grow to the space allowed; there is a spacer widget in playground, it should get merged in 4.3.
*** Bug 180170 has been marked as a duplicate of this bug. ***
I noticed that. too. A very quick way to reproduce this bug is to remove the task manager on a default desktop with a default panel - the taskbar serves to squish both the system tray and the digital clock down to their correct sizes, but when you remove it, they expand to occupy all available space on the panel, when an more appropriate behavior would be for the clock and system tray to expand only to take just enough space to display the time/date or tray icons.
Exactly. I still believe this is bug in plasmoids I have reported against originally. They should not indicate that they are capable to use extra space - they are not. I am not expert in KDE/Qt, so I do not know which exact combination of various settings would be needed here. And current spacer plasmoid does not solve this issue as well. It is incapable of stretching and pushing other plasmoids like task bar. The only thing it allows - to set minimum width, but it is static and does not change when you add new plasmoid or existing plasmoid changes width. I ended up with this trivial bit of code which actually mimics task bar and allows me to keep size of others in limits (and add widgets noth to the left and right side of panel); this was monkey trial and error job, I do not really understand how layout works. May be something like this could be merged into panelspacer. #include "plasma-tutorial1.h" PlasmaTutorial1::PlasmaTutorial1(QObject *parent, const QVariantList &args) : Plasma::Applet(parent, args) { setBackgroundHints(DefaultBackground); resize(200, 200); } PlasmaTutorial1::~PlasmaTutorial1() { } void PlasmaTutorial1::init() { setSizePolicy(QSizePolicy(QSizePolicy::Expanding,QSizePolicy::Expanding)); setAspectRatioMode(Plasma::IgnoreAspectRatio); } #include "plasma-tutorial1.moc"
Created attachment 30511 [details] make plasma applets yield space for greedy applets this patch is the first of a two series fixing this. this one makes applets yield space for greedy applets like the taskbar or a spacer one. see next patch comments about it.
Created attachment 30512 [details] make panel spacer be greedy about space, pushing other applets to the sides. This second patch is for the applet itself. note that according to aaron[1] there will be no panel spacer in kde4.3, so this code should be obsolete soon. anyways, it works as a proof of concept. -- [1] http://mail.kde.org/pipermail/plasma-devel/2008-December/002989.html
please commit both patches.. thanks :)
Created attachment 32450 [details] panel spacer 908622 I tried panel spacer plasma-applet-panelspacer-0.0-0.908622.2mdv2009.1 (see screenshot). I wonder if this is expected behaviour? I enabled "Spacer can automatically stretch" but as you see, both clock and tray widgets still consume much more space than they really need. Using my widget posted above I get correctly sized widgets kept to the minimal required size.
For me this is fixed in 4.2.95.
Created attachment 69686 [details] Unfortunately for me this isn't fixed in 4.7.4. ( I believe it's still there in 4.8.0, but right now I've downgraded back to 4.7.4.). Unfortunately for me this isn't fixed in 4.7.4. ( I believe it's still there in 4.8.0, but right now I've downgraded back to 4.7.4.). See attachment. Is this another bug? If so, please let me know so I can provide info accordingly.