[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-panel-devel
Subject:    Re: Wrong plasmoid size on taskbar
From:       Marco Martin <notmart () gmail ! com>
Date:       2012-10-29 19:58:07
Message-ID: 201210292058.07723.notmart () gmail ! com
[Download RAW message or body]

On Sunday 28 October 2012, Nicolas Vinot wrote:
> Hi everybody,
> 
> I'm writing a new declarative plasmoid, but I have some trouble with size
> in taskbar.
> When placed on desktop, no problem, it size is correct, but on taskbar,
> size is just wider than a button :
> http://img15.hostingpics.net/pics/130396pomodoro.png
> 
> Corresponding code is here : https://gist.github.com/3968357
> 
> Is there any way to define the size of the widget in taskbar ?

defining property int minimumWidth
property int minimumHeight

in the root element.

however pay attention that if the formfactor is horizontal (ie horizontal 
panels) minimum height should always be 0 or anyways a very small value

(same thing for with in vertical formfactor, ie vertical panels)

Cheers,
Marco Martin
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic