mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge pull request #76 from NativeScript/zhecheva/flexbox-order
FlexboxLayout exposes a method for clearing the orders cache
This commit is contained in:
@@ -518,6 +518,15 @@ public class FlexboxLayout extends ViewGroup {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Invalidates the cache of the orders so that they are recalculated.
|
||||
*/
|
||||
public void invalidateOrdersCache() {
|
||||
if (this.mOrderCache != null) {
|
||||
this.mOrderCache.clear();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sub method for {@link #onMeasure(int, int)}, when the main axis direction is horizontal
|
||||
* (either left to right or right to left).
|
||||
|
||||
Reference in New Issue
Block a user