Testing mixing styles
This commit is contained in:
@ -16,13 +16,11 @@ UIBorder::UIBorder(SceneItem *item) :
|
||||
}
|
||||
|
||||
float_t UIBorder::getContentWidth() {
|
||||
if(this->texture != nullptr) return this->texture->getWidth();
|
||||
return this->width;
|
||||
return this->width - this->borderSize._realValue.x * 2.0f;
|
||||
}
|
||||
|
||||
float_t UIBorder::getContentHeight() {
|
||||
if(this->texture != nullptr) return this->texture->getHeight();
|
||||
return this->height;
|
||||
return this->height - this->borderSize._realValue.y * 2.0f;
|
||||
}
|
||||
|
||||
float_t UIBorder::getChildOffsetX() {
|
||||
|
Reference in New Issue
Block a user