Skip to content

Commit

Permalink
fix(layout): add measure cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ilikethese committed Aug 8, 2023
1 parent c834ed8 commit d3ca25e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/taitank_node.cc
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ void TaitankNode::LayoutImpl(float parent_width, float parent_height,
TaitankSizeMode measureMode = {widthMeasureMode, heightMeasureMode};
MeasureResult* cacheResult = layout_cache_.GetCachedMeasureResult(
availableSize, measureMode, layout_action, measure_ != nullptr);
if (cacheResult != nullptr && layout_action != LAYOUT_ACTION_LAYOUT) {
if (cacheResult != nullptr) {
// set Result....
switch (layout_action) {
case LAYOUT_ACTION_MEASURE_WIDTH:
Expand Down
2 changes: 1 addition & 1 deletion taitank.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Pod::Spec.new do |s|
puts 'taitank.podspec read begins'
s.name = 'taitank'
s.version = '1.0.4'
s.version = '1.0.5'
s.summary = 'Taitank Cross Platform Layout'

# This description is used to generate tags and improve search results.
Expand Down

0 comments on commit d3ca25e

Please sign in to comment.