Skip to content

Commit

Permalink
https://github.com/develar/miglayout-as/issues/4
Browse files Browse the repository at this point in the history
  • Loading branch information
develar committed Dec 15, 2011
1 parent 231027d commit e89d1b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions flash/src/org/jetbrains/migLayout/flash/FlashComponentWrapper.as
Expand Up @@ -7,7 +7,7 @@ import net.miginfocom.layout.ComponentType;
import net.miginfocom.layout.ComponentWrapper;
import net.miginfocom.layout.LayoutUtil;

internal class FlashComponentWrapper implements ComponentWrapper {
public class FlashComponentWrapper implements ComponentWrapper {
protected var c:DisplayObject;

function FlashComponentWrapper(c:DisplayObject, constraints:CC) {
Expand Down Expand Up @@ -41,19 +41,19 @@ internal class FlashComponentWrapper implements ComponentWrapper {
}

public function getMinimumWidth(hHint:int = -1):int {
return 0;
return getPreferredWidth();
}

public function getMinimumHeight(wHint:int = -1):int {
return 0;
return getPreferredHeight();
}

public function getPreferredWidth(hHint:int = -1):int {
return c.width;
return c.width / c.scaleX;
}

public function getPreferredHeight(wHint:int = -1):int {
return c.height;
return c.height / c.scaleY;
}

public function getMaximumWidth(hHint:int = -1):int {
Expand Down
Expand Up @@ -11,7 +11,7 @@ import net.miginfocom.layout.ContainerWrapper;
import net.miginfocom.layout.ContainerWrappers;
import net.miginfocom.layout.PlatformDefaults;

public final class FlashContainerWrapper extends FlashComponentWrapper implements ContainerWrapper {
public class FlashContainerWrapper extends FlashComponentWrapper implements ContainerWrapper {
internal var w:int;
internal var h:int;

Expand Down

0 comments on commit e89d1b1

Please sign in to comment.