Skip to content

Commit

Permalink
Do not apply clearfix to all legends, only bubble legend
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusbotella committed Jun 15, 2018
1 parent aad629b commit f4fb03b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/geo/ui/legends/base/legend-view-base.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ var ImageLoaderView = require('./img-loader-view');

var LegendViewBase = Backbone.View.extend({

className: 'CDB-Legend-item u-tSpace-xl u-clearfix',
className: 'CDB-Legend-item u-tSpace-xl',

initialize: function (opts) {
this._placeholderTemplate = opts.placeholderTemplate;
Expand Down
2 changes: 2 additions & 0 deletions src/geo/ui/legends/bubble/legend-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ var formatter = require('../../../../util/formatter');

var BubbleLegendView = LegendViewBase.extend({

className: 'CDB-Legend-item u-tSpace-xl u-clearfix',

_getCompiledTemplate: function () {
return template({
hasCustomLabels: this._hasCustomLabels(),
Expand Down

0 comments on commit f4fb03b

Please sign in to comment.