litesoft
Diff Revisions
150
vs
151
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/DragPositionableController.java
|
@@ -12,17 +12,15 @@ |
12 |
12 |
|
protected boolean dragBy( int pDeltaX, int pDeltaY ) |
13 |
13 |
|
{ |
14 |
14 |
|
getTarget().setPosition( calcNewPos( "X", getTarget().getPosLeft(), pDeltaX, // |
15 |
|
- |
getTarget().minPosLeft(), getTarget().maxPosLeft() ), |
16 |
|
- |
calcNewPos( "Y", getTarget().getPosTop(), pDeltaY, // |
17 |
|
- |
getTarget().minPosTop(), getTarget().maxPosTop() ) ); |
|
15 |
+ |
getTarget().minPosLeft(), getTarget().maxPosLeft() ), calcNewPos( "Y", getTarget().getPosTop(), pDeltaY, // |
|
16 |
+ |
getTarget().minPosTop(), getTarget().maxPosTop() ) ); |
18 |
17 |
|
return true; |
19 |
18 |
|
} |
20 |
19 |
|
|
21 |
20 |
|
/** |
22 |
21 |
|
* @noinspection UnusedDeclaration |
23 |
22 |
|
*/ |
24 |
|
- |
private int calcNewPos( String pOrientation, int pCurrentPosition, int pDelta, |
25 |
|
- |
int pMinimumPosition, int pMaximumPosition ) |
|
23 |
+ |
private int calcNewPos( String pOrientation, int pCurrentPosition, int pDelta, int pMinimumPosition, int pMaximumPosition ) |
26 |
24 |
|
{ |
27 |
25 |
|
int zNewPosition = pCurrentPosition; |
28 |
26 |
|
if ( pDelta < 0 ) |