SystemTray: pop-up window position

Marco Martin notmart at gmail.com
Mon Nov 19 10:09:57 UTC 2012


On Sunday 18 November 2012, Aaron J. Seigo wrote:
> On Saturday, November 17, 2012 19:36:27 Marco Martin wrote:
> > On Saturday 17 November 2012, Aaron J. Seigo wrote:
> > > > 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?
> > 
> > but is also true that when n is < 2 the difference between centered and
> > on the left isn't that much anymore...
> 
> exactly; it's when it is N > 2 (or some other fixed constant we find
> through trial and error) that alignment to the trigger event (e.g. mouse
> press) becomes better.
> 

pushed in popupapplet a "center when popup more then doucle the applet in 
panel" behavior..
everybody give a try to see how it looks


Cheers,
Marco Martin


More information about the Plasma-devel mailing list