Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[core] recalculate style on layout property changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ivovandongen committed Nov 7, 2016
1 parent 5412191 commit 9593fba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"lodash": "^4.16.4",
"mapbox-gl-shaders": "mapbox/mapbox-gl-shaders#98a56d538b11fb331aa67a6d632d6ecd6821b007",
"mapbox-gl-style-spec": "mapbox/mapbox-gl-style-spec#7f62a4fc9f21e619824d68abbc4b03cbc1685572",
"mapbox-gl-test-suite": "mapbox/mapbox-gl-test-suite#d27aab1c74f0f0462e19d4aa5700fb2127567f87",
"mapbox-gl-test-suite": "mapbox/mapbox-gl-test-suite#a5ef214ab076af6f6f6d350fd1cc6d5c2584f401",
"mkdirp": "^0.5.1",
"node-cmake": "^1.2.1",
"request": "^2.72.0",
Expand Down
2 changes: 1 addition & 1 deletion src/mbgl/style/style.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ void Style::onLayerPaintPropertyChanged(Layer&) {

void Style::onLayerLayoutPropertyChanged(Layer& layer) {
layer.accept(QueueSourceReloadVisitor { updateBatch });
observer->onUpdate(Update::Layout);
observer->onUpdate(Update::Layout | Update::RecalculateStyle);
}

void Style::dumpDebugLogs() const {
Expand Down

0 comments on commit 9593fba

Please sign in to comment.