Fix in UINode::lengthAsPixels().

--HG--
branch : dev
This commit is contained in:
Martí­n Lucas Golini
2019-11-24 01:30:09 -03:00
parent 52965eb9d8
commit 567d19aaed
2 changed files with 7 additions and 4 deletions

View File

@@ -303,11 +303,14 @@ TabWidget {
}
#rrl > .back {
width: 250dp;
height: 40dp;
width: 1dp;
height: 1dp;
background-image: url(file://assets/icon/ee.png);
background-position: center;
layout-gravity: center;
background-color: #333;
transition: all 0.5s;
clip: true;
}
#rrl:hover > .back {

View File

@@ -988,8 +988,8 @@ Uint32 UINode::onFocusLoss() {
Float UINode::lengthAsPixels( const CSS::StyleSheetLength& length, const Sizef& drawableSize, const bool& percentAsWidth ) {
return length.asPixels(
percentAsWidth ? getParent()->getPixelsSize().getWidth() - drawableSize.getWidth() :
getParent()->getPixelsSize().getHeight() - drawableSize.getHeight(),
percentAsWidth ? getPixelsSize().getWidth() - drawableSize.getWidth() :
getPixelsSize().getHeight() - drawableSize.getHeight(),
getSceneNode()->getPixelsSize(),
getSceneNode()->getDPI(), 12, 12 );
}