Resizing/rotating applets

Jason Stubbs jasonbstubbs at gmail.com
Sun Jan 6 14:08:02 CET 2008


On Sunday 06 January 2008 21:14:08 JST, Alex Merry wrote:
> At Sunday 06 January 2008 03:45, you wrote:
> > When the resize button is close to the center vertically, resizing just a
> > single pixel dramatically increases the height. Moving the resize button
> > to the top-left would be a quick workaround, but perhaps resizing should
> > be calculated based on the distance rather than on ratios? That is,
> > moving the mouse one pixel away from the initial click would increase by
> > 2 pixels (one on the top and one on the bottom) so that the position of
> > the button becomes irrelevant...
>
> If you change the calculation method, you lose the nice effect of the
> button always staying under the mouse (providing you don't reach the
> minimum or maximum sizes, of course).
>
> Can you try the attached patch?  It swaps the configure and resize buttons,
> since the configure button doesn't need any particular position, and the
> rotate button seems to work fine in second position.

Yep, that works much better. With it in the top-left it doesn't feel unnatural 
at all, except... If you resize an applet smaller than the height needed for 
the four handle buttons and then release, hovering will give a large handle 
and moving the mouse several pixels will only resize the actual applet by one 
pixel. This is still much better than the reverse though.

-- 
Jason Stubbs


More information about the Panel-devel mailing list