UI: Trigger view recreate on static sized screens.

If a screen doesn't size via layout, it needs to recreate views on resize,
which is what the resized() method is for.
This commit is contained in:
Unknown W. Brackets committed 2017-12-27 01:13:47 -08:00
1 parent 4657397b57
commit c0f0bc88af
8 files changed
+17 -10

No files matched your search

-4
View File
@@ -1099,10 +1099,6 @@ void NativeResized() {
// NativeResized can come from any thread so we just set a flag, then process it later.
if (g_graphicsInited) {
resized = true;
if (uiContext) {
// Still have to update bounds to avoid problems in display layout and touch controls layout screens
uiContext->SetBounds(Bounds(0, 0, dp_xres, dp_yres));
}
} else {
ILOG("NativeResized ignored, not initialized");
}