mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-11 17:17:42 +03:00
Fix in UINode::lengthAsPixels().
--HG-- branch : dev
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user