SystemTray: pop-up window position
Aaron J. Seigo
aseigo at kde.org
Sat Nov 17 16:47:49 UTC 2012
On Saturday, November 17, 2012 14:03:59 Marco Martin wrote:
> On Saturday 17 November 2012, Aaron J. Seigo wrote:
> > and really, if the item the popup originates from is really bigger than
> > the
> > popup, the popup probably should be centered on the press event position.
> > if triggered via a non-press event (e.g. a keyboard shortcut) then
> > centered-on- top-level-item may work just as well too.
> >
> > > i was thinking about defaulting everything to centered
> >
> > +1, though with the above caveats.
>
> maybe discriminating with the font size?
>
> like if is more than ~20 characters wide, we would assume is not something
> serving as a simple menu, but is a complex thing, so center...
or maybe just compare the popup size to the target item size .. if the target
item is N times wider/taller (depending on orientation) than the popup,
position at event location. otherwise center.
N = 2 might work?
--
Aaron J. Seigo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20121117/ef772f1c/attachment.sig>
More information about the Plasma-devel
mailing list