pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Noel Grandin <noelgran...@gmail.com>
Subject Re: Resize handle bug in palettes
Date Thu, 15 Mar 2012 07:18:04 GMT
thanks, committed.

On 2012-03-14 20:21, Piotr Kołaczkowski wrote:
> diff --git a/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraPaletteSkin.java b/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraPaletteSkin.java
> index 85753a7..b635bdb 100644
> --- a/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraPaletteSkin.java
> +++ b/wtk-terra/src/org/apache/pivot/wtk/skin/terra/TerraPaletteSkin.java
> @@ -511,9 +511,7 @@ public class TerraPaletteSkin extends WindowSkin {
>                   dragOffset = new Point(x, y);
>                   Mouse.capture(component);
>               } else {
> -                Bounds resizeHandleBounds = resizeHandle.getBounds();
> -
> -                if (resizeHandleBounds.contains(x, y)) {
> +                if (resizeHandle.isVisible()&&  x>  resizeHandle.getX()&&
 y>  resizeHandle.getY()) {
>                       resizeOffset = new Point(getWidth() - x, getHeight() - y);
>                       Mouse.capture(component);
>                   }

Mime
View raw message