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

List:       kde-panel-devel
Subject:    Re: [Panel-devel] Resizing and contentsize
From:       "Aaron J. Seigo" <aseigo () kde ! org>
Date:       2007-11-03 0:43:02
Message-ID: 200711021843.02707.aseigo () kde ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Friday 02 November 2007, Sven Burmeister wrote:
> Is it the best way to calculate what size the content needs, then update
> the sizeHint, call prepareGeometryChange and after that updateGeometry? Or
> should I call update() as well?

just call updateGeometry and ensure your contentSizeHint is correct.

> I have set the sizeHint to the width of the text + 2*margin, so the area
> within the plasmoid should have that width. Yet if I place the text within
> that area and start at x = margin there is no margin on the right of the
> text. That happens to the digital-clock as well, i.e. there is more space
> on the left than on the right and I do not know why.

i'll try and take a look at it later.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Trolltech

[Attachment #5 (application/pgp-signature)]

_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel


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

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