improve resizing
This commit is contained in:
@@ -34,10 +34,6 @@ using namespace Global;
|
||||
using namespace MPD;
|
||||
using std::string;
|
||||
|
||||
//Window *Global::wPlaylistEditorActiveCol;
|
||||
//Menu<string> *Global::List;
|
||||
//Menu<Song> *Global::Content;
|
||||
|
||||
PlaylistEditor *myPlaylistEditor = new PlaylistEditor;
|
||||
|
||||
size_t PlaylistEditor::LeftColumnWidth;
|
||||
@@ -76,6 +72,8 @@ void PlaylistEditor::Resize()
|
||||
Content->Resize(RightColumnWidth, main_height);
|
||||
|
||||
Content->MoveTo(RightColumnStartX, main_start_y);
|
||||
|
||||
hasToBeResized = 0;
|
||||
}
|
||||
|
||||
std::string PlaylistEditor::Title()
|
||||
@@ -95,6 +93,9 @@ void PlaylistEditor::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