https://bugs.kde.org/show_bug.cgi?id=467385

Nate Graham <n...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |CONFIRMED
                 CC|                            |n...@kde.org
     Ever confirmed|0                           |1
            Summary|Task Manager with too many  |Non-space-filling panel
                   |items will push applets     |widgets have unbounded
                   |off-screen                  |length values and can cause
                   |                            |the panel contents to
                   |                            |overflow

--- Comment #1 from Nate Graham <n...@kde.org> ---
In fact using the "fill empty space" option is the only thing that can fix it
right now. Without that option being used, the Task Manager widget's length is
unbounded and it's up to you to manage this.

This seems like a fairly glaring oversight, but in fact it would be
surprisingly challenging to fix: one approach would be to let widgets to be
able to know the size of the panel they live in so they could calculate a
practical maximum width for themselves, but this is currently is not the case
and we don't want to do this because it would break widgets' encapsulation.
What we'd have to do is make the panel itself refuse to allow non-space-filling
widgets to have more than a certain height/width by capping their width to the
value of to [total panel length - combined length of all other widgets]. But
this should only be applied to non-space-filling widgets; most don't need such
treatment. So we would also need to implement a way for widgets to communicate
to the panel they live on to essentially say, "hey please cap my maximum length
for me because I don't do it myself kthx".

FWIW...

> but that makes the Task Manager not properly centered (between two spacers).
This is a bug; it's supposed to center itself properly between the two spacers.
Can you submit another bug report about that so we can investigate and fix it
and then you don't have to use a workaround that breaks other things?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to