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 _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel