mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Fix listbox position on UIDropDownList.
--HG-- branch : dev
This commit is contained in:
@@ -148,6 +148,15 @@ void UIDropDownList::showList() {
|
||||
if ( mStyleConfig.PopUpToMainControl ) {
|
||||
getParent()->controlToWorld( Pos );
|
||||
Pos = PixelDensity::pxToDpI( Pos );
|
||||
} else if ( NULL != mFriendCtrl ) {
|
||||
Pos = Vector2i( mFriendCtrl->getPosition().x, mFriendCtrl->getPosition().y + mFriendCtrl->getSize().getHeight() );
|
||||
} else {
|
||||
UIControl * ParentLoop = getParent();
|
||||
UIControl * rp = getWindowContainer();
|
||||
while ( rp != ParentLoop ) {
|
||||
Pos += ParentLoop->getPosition();
|
||||
ParentLoop = ParentLoop->getParent();
|
||||
}
|
||||
}
|
||||
|
||||
Pos.y -= mListBox->getSize().getHeight();
|
||||
|
||||
Reference in New Issue
Block a user