Skip to content

Commit

Permalink
Fix: Realign breakpoint for column layout to medium and above (fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored May 15, 2023
2 parents 61660a0 + e1094fc commit 08a2a22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/HotgridView.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class HotgridView extends ComponentView {

setUpColumns() {
const columns = this.model.get('_columns');
const columnWidth = columns && device.screenSize === 'large' ? 100 / columns : 100;
const columnWidth = columns && device.isScreenSizeMin('medium') ? 100 / columns : 100;

this.model.set('_columnWidth', columnWidth);
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "adapt-hotgrid",
"version": "4.3.9",
"framework": ">=5.22.4",
"framework": ">=5.31.2",
"homepage": "https://github.com/cgkineo/adapt-hotgrid",
"issues": "https://github.com/cgkineo/adapt-hotgrid/issues/",
"component": "hotgrid",
Expand Down

0 comments on commit 08a2a22

Please sign in to comment.