Skip to content

Commit

Permalink
Fix GolfClub tests after T566515 fixing (#2274)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yarovaya authored Dec 18, 2017
1 parent 18190f8 commit b280f27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/ui/responsive_box.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ var ResponsiveBox = CollectionWidget.inherit({
},

_needApplyAutoBaseSize: function(item) {
return !item.baseSize && (!item.minSize) && (!item.maxSize || item.maxSize === "none");
return !item.baseSize && (!item.minSize || item.minSize === "auto") && (!item.maxSize || item.maxSize === "auto");
},

_prepareBoxConfig: function(config) {
Expand Down Expand Up @@ -611,8 +611,8 @@ var ResponsiveBox = CollectionWidget.inherit({
result.maxSize += sizeConfig.maxSize;
}

result.minSize = result.minSize ? result.minSize : 0;
result.maxSize = result.maxSize ? result.maxSize : "none";
result.minSize = result.minSize ? result.minSize : "auto";
result.maxSize = result.maxSize ? result.maxSize : "auto";

this._isSingleColumnScreen() && (result.baseSize = 'auto');

Expand Down

0 comments on commit b280f27

Please sign in to comment.