mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 09:56:59 +00:00
Fix layout bug when a file cannot be opened from the recent list in HomeView
This commit is contained in:
parent
cee355ee61
commit
8fbf0854b0
@ -21,12 +21,13 @@
|
|||||||
#include "base/bind.h"
|
#include "base/bind.h"
|
||||||
#include "base/path.h"
|
#include "base/path.h"
|
||||||
#include "ui/graphics.h"
|
#include "ui/graphics.h"
|
||||||
#include "ui/listitem.h"
|
|
||||||
#include "ui/link_label.h"
|
#include "ui/link_label.h"
|
||||||
|
#include "ui/listitem.h"
|
||||||
#include "ui/message.h"
|
#include "ui/message.h"
|
||||||
#include "ui/paint_event.h"
|
#include "ui/paint_event.h"
|
||||||
#include "ui/preferred_size_event.h"
|
#include "ui/preferred_size_event.h"
|
||||||
#include "ui/system.h"
|
#include "ui/system.h"
|
||||||
|
#include "ui/view.h"
|
||||||
|
|
||||||
namespace app {
|
namespace app {
|
||||||
|
|
||||||
@ -100,6 +101,12 @@ void RecentListBox::rebuildList()
|
|||||||
removeChild(getLastChild());
|
removeChild(getLastChild());
|
||||||
|
|
||||||
onRebuildList();
|
onRebuildList();
|
||||||
|
|
||||||
|
View* view = View::getView(this);
|
||||||
|
if (view)
|
||||||
|
view->layout();
|
||||||
|
else
|
||||||
|
layout();
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
Reference in New Issue
Block a user