diff --git a/PanoPainter.vcxproj b/PanoPainter.vcxproj
index 0ad5ff6..4284054 100644
--- a/PanoPainter.vcxproj
+++ b/PanoPainter.vcxproj
@@ -112,7 +112,7 @@
Use
Level3
Disabled
- DEBUG;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ ENUM_BITFIELDS_NOT_SUPPORTED;DEBUG;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)
pch.h
false
@@ -153,7 +153,7 @@
MaxSpeed
true
true
- NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
+ ENUM_BITFIELDS_NOT_SUPPORTED;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)
pch.h
MultiThreadedDLL
false
@@ -189,6 +189,116 @@
NotUsing
NotUsing
+
+ NotUsing
+ NotUsing
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+
+
+ NotUsing
+ NotUsing
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+
+
+ NotUsing
+ NotUsing
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+
+
+ NotUsing
+ NotUsing
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+
+
+ NotUsing
+ NotUsing
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+
+
+ NotUsing
+ NotUsing
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+
+
+ NotUsing
+ NotUsing
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+
+
+ NotUsing
+ NotUsing
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+
+
+ NotUsing
+ NotUsing
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+
+
+ NotUsing
+ NotUsing
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+
+
+ NotUsing
+ NotUsing
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+ $(IntDir)yoga\
+
@@ -310,14 +420,6 @@
Use
Use
-
- NotUsing
- NotUsing
-
-
- NotUsing
- NotUsing
-
@@ -394,10 +496,6 @@
-
-
-
-
diff --git a/PanoPainter.vcxproj.filters b/PanoPainter.vcxproj.filters
index 21a39d2..9f57f61 100644
--- a/PanoPainter.vcxproj.filters
+++ b/PanoPainter.vcxproj.filters
@@ -258,12 +258,6 @@
Source Files\ui
-
- libs\yoga
-
-
- libs\yoga
-
Source Files\ui
@@ -315,6 +309,39 @@
Source Files
+
+ libs\yoga
+
+
+ libs\yoga
+
+
+ libs\yoga
+
+
+ libs\yoga
+
+
+ libs\yoga
+
+
+ libs\yoga
+
+
+ libs\yoga
+
+
+ libs\yoga
+
+
+ libs\yoga
+
+
+ libs\yoga
+
+
+ libs\yoga
+
@@ -491,18 +518,6 @@
Header Files\ui
-
- libs\yoga
-
-
- libs\yoga
-
-
- libs\yoga
-
-
- libs\yoga
-
Header Files\ui
diff --git a/android/CMakeLists.txt b/android/CMakeLists.txt
index 113217a..8bd9fb3 100644
--- a/android/CMakeLists.txt
+++ b/android/CMakeLists.txt
@@ -21,8 +21,17 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
add_library(
native-lib SHARED
- ../libs/yoga/yoga/YGNodeList.c
- ../libs/yoga/yoga/Yoga.c
+ ../libs/yoga/yoga/log.cpp
+ ../libs/yoga/yoga/Utils.cpp
+ ../libs/yoga/yoga/YGConfig.cpp
+ ../libs/yoga/yoga/YGEnums.cpp
+ ../libs/yoga/yoga/YGLayout.cpp
+ ../libs/yoga/yoga/YGMarker.cpp
+ ../libs/yoga/yoga/YGNode.cpp
+ ../libs/yoga/yoga/YGNodePrint.cpp
+ ../libs/yoga/yoga/YGStyle.cpp
+ ../libs/yoga/yoga/YGValue.cpp
+ ../libs/yoga/yoga/Yoga.cpp
../libs/tinyxml2/tinyxml2.cpp
../libs/jpeg/jpgd.cpp
../libs/jpeg/jpge.cpp
diff --git a/data/layout.xml b/data/layout.xml
index d7ec945..42f3e56 100644
--- a/data/layout.xml
+++ b/data/layout.xml
@@ -137,7 +137,7 @@
-
+
@@ -168,7 +168,7 @@
-
+
@@ -1087,13 +1087,13 @@
-
+
-
+
-
+
-
+
+
@@ -1149,13 +1149,13 @@ Roboto Font License:
-
-
-
+
+
+
-
+
-
+
-
-
+
+
@@ -1239,13 +1239,13 @@ Here's a list of what's available in this release.
-
+
-
+
-
+
@@ -1263,8 +1263,8 @@ Here's a list of what's available in this release.
-
-
+
+
diff --git a/libs/yoga b/libs/yoga
index 8d74e01..f793ba2 160000
--- a/libs/yoga
+++ b/libs/yoga
@@ -1 +1 @@
-Subproject commit 8d74e01f41f062d732bdc4de34dddf213b0fb173
+Subproject commit f793ba2d6bfa5ef9631b83f34df65d4e2a9ad0a9
diff --git a/src/node.cpp b/src/node.cpp
index f9281cf..a69fdf3 100644
--- a/src/node.cpp
+++ b/src/node.cpp
@@ -124,7 +124,8 @@ kEventResult Node::on_event(Event* e)
if (!skip_children)
{
- for (auto it = m_children.rbegin(); it != m_children.rend(); ++it)
+ auto children_copy = m_children; // make a copy for safety
+ for (auto it = children_copy.rbegin(); it != children_copy.rend(); ++it)
{
if ((*it)->on_event(e) == kEventResult::Consumed)
{
@@ -534,6 +535,7 @@ Node&& Node::operator=(Node&& o)
Node::Node()
{
y_node = YGNodeNew();
+ YGNodeSetContext(y_node, this);
y_placeholder = nullptr;
}