|
|
|
|
|
|
|
|
if (parent == null) { |
|
|
if (parent == null) { |
|
|
return false; |
|
|
return false; |
|
|
} else if (parent.getWidth() < 0) { |
|
|
} else if (parent.getWidth() < 0) { |
|
|
|
|
|
if (parent instanceof Window) { |
|
|
|
|
|
// Window has some weird haxxors to support 100% children when |
|
|
|
|
|
// window is -1 |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return true; |
|
|
return true; |
|
|
} else if (parent.getWidthUnits() == Unit.PERCENTAGE) { |
|
|
} else if (parent.getWidthUnits() == Unit.PERCENTAGE) { |
|
|
return isEffectiveUndefinedWidth(parent.getParent()); |
|
|
return isEffectiveUndefinedWidth(parent.getParent()); |
|
|
|
|
|
|
|
|
if (parent == null) { |
|
|
if (parent == null) { |
|
|
return false; |
|
|
return false; |
|
|
} else if (parent.getHeight() < 0) { |
|
|
} else if (parent.getHeight() < 0) { |
|
|
|
|
|
if (parent instanceof Window) { |
|
|
|
|
|
// Window has some weird haxxors to support 100% children when |
|
|
|
|
|
// window is -1 |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return true; |
|
|
return true; |
|
|
} else if (parent.getHeightUnits() == Unit.PERCENTAGE) { |
|
|
} else if (parent.getHeightUnits() == Unit.PERCENTAGE) { |
|
|
return isEffectiveUndefinedHeight(parent.getParent()); |
|
|
return isEffectiveUndefinedHeight(parent.getParent()); |