Bug 315825 - qml compactRepresentation when in panel does not take into account panel size
Summary: qml compactRepresentation when in panel does not take into account panel size
Status: RESOLVED NOT A BUG
Alias: None
Product: plasma4
Classification: Plasma
Component: containment-panel (show other bugs)
Version: 4.10.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-26 21:54 UTC by Michail Vourlakos
Modified: 2017-07-29 12:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Workflow plasmoid in a panel (36.91 KB, image/png)
2013-03-13 19:44 UTC, Lionel Chauvin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michail Vourlakos 2013-02-26 21:54:14 UTC
When a qml plasmoid with compactRepresentation enabled is added in the panel it uses the panel's icon width without take into account the panel height or width.

The strange behavior is that when the panel's icon is set to high values e.g. 256 then the compactRepresentation uses a lot of empty space. 

A plasmoid which can this be tested is the WorkFlow Plasmoid:
http://kde-apps.org/content/show.php/WorkFlow+Plasmoid?content=147428
Comment 1 Lionel Chauvin 2013-03-13 19:43:52 UTC
Hi,
I downloaded your plasmoid from kde look (workflow 0.3.0 ).
I compiled it on kde 4.10.1.
I created an empty panel to the right of my screen.
I added the plasmoid in it.
It shows a small icon when the panel is small. If I click on this icon then a popup appears.
If I increase panel's height, I still see the icon and a part of the plasmoid appears.  Plasmoid's components overlaps each others (See attachment).  In this case, the popup doesn't appear if I click on the icon. 

I don't know if this behavior match with your problem.
Anyway I agree, compact representation should be improved.
Comment 2 Lionel Chauvin 2013-03-13 19:44:31 UTC
Created attachment 78025 [details]
Workflow plasmoid in a panel
Comment 3 Michail Vourlakos 2013-03-18 18:06:40 UTC
(In reply to comment #2)
> Created attachment 78025 [details]
> Workflow plasmoid in a panel
Well the problem is because of the CompactRepresentation. it uses minimumWidth and minimumHeight in order to know when is going to show only the CompactRepresentation in the panel...  In the next iteration 0.4.0 which will be released in a few weeks I had to set minimumWidth and minimumHeight extremely large (400 - 600) in order for this issue to not appear... There are two or three more issues with the CompactRepresentation which have been described in 
https://github.com/psifidotos/workflow-project/issues?sort=updated&state=open  so I have also added a way for the user to add a handmade property to disable totally the CompactRepresentation...

BTW, if someone pointed me in the CompactRepresentation and gave me some info how we would like to implement it (e.g. add minimumWidth and minimumHeight inside the CompactRepresentation? etc.) I could make a try to impove it...
Comment 4 Michail Vourlakos 2017-07-29 12:47:14 UTC
too old...