File chooser: back to the start of the list when having a new folder

This commit is contained in:
Edouard Dupin 2012-05-11 17:40:05 +02:00
parent a5893dae56
commit d529f48e1c

View File

@ -101,6 +101,8 @@ class FileChooserFolderList : public ewol::List
} }
} }
m_listDirectory.Clear(); m_listDirectory.Clear();
m_originScrooled.x = 0;
m_originScrooled.y = 0;
MarkToReedraw(); MarkToReedraw();
} }
@ -271,6 +273,8 @@ class FileChooserFileList : public ewol::List
} }
} }
m_listFile.Clear(); m_listFile.Clear();
m_originScrooled.x = 0;
m_originScrooled.y = 0;
MarkToReedraw(); MarkToReedraw();
} }