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

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel

Reply via email to