improve resizing
This commit is contained in:
@@ -85,6 +85,8 @@ void MediaLibrary::Resize()
|
||||
|
||||
Albums->MoveTo(itsMiddleColStartX, main_start_y);
|
||||
Songs->MoveTo(itsRightColStartX, main_start_y);
|
||||
|
||||
hasToBeResized = 0;
|
||||
}
|
||||
|
||||
void MediaLibrary::Refresh()
|
||||
@@ -106,6 +108,9 @@ void MediaLibrary::SwitchTo()
|
||||
if (myScreen == this)
|
||||
return;
|
||||
|
||||
if (hasToBeResized)
|
||||
Resize();
|
||||
|
||||
CLEAR_FIND_HISTORY;
|
||||
myScreen = this;
|
||||
myPlaylist->Main()->Hide(); // hack, should be myScreen, but it doesn't always have 100% width
|
||||
|
||||
Reference in New Issue
Block a user