litesoft
Diff Revisions
947
vs
948
for /trunk/Java/GWT/Client/src/org/litesoft/GWT/client/widgets/nonpublic/BothStretchableAdjustor.java
|
@@ -5,18 +5,14 @@ |
5 |
5 |
|
|
6 |
6 |
|
import com.google.gwt.user.client.ui.*; |
7 |
7 |
|
|
8 |
|
- |
public class BothStretchableAdjustor implements StretchabilityAdjustor |
9 |
|
- |
{ |
|
8 |
+ |
public class BothStretchableAdjustor implements StretchabilityAdjustor { |
10 |
9 |
|
public static final StretchabilityAdjustor INSTANCE = new BothStretchableAdjustor(); |
11 |
10 |
|
|
12 |
11 |
|
@Override |
13 |
|
- |
public Widget adjustStretchability( Widget pWidget ) |
14 |
|
- |
{ |
15 |
|
- |
if ( pWidget instanceof ISizeableWidget ) |
16 |
|
- |
{ |
|
12 |
+ |
public Widget adjustStretchability( Widget pWidget ) { |
|
13 |
+ |
if ( pWidget instanceof ISizeableWidget ) { |
17 |
14 |
|
ISizeableWidget zSizeable = (ISizeableWidget) pWidget; |
18 |
|
- |
if ( zSizeable.getHeightHelper().isStretchable() && zSizeable.getWidthHelper().isStretchable() ) |
19 |
|
- |
{ |
|
15 |
+ |
if ( zSizeable.getHeightHelper().isStretchable() && zSizeable.getWidthHelper().isStretchable() ) { |
20 |
16 |
|
return pWidget; |
21 |
17 |
|
} |
22 |
18 |
|
} |