Skip to content

Commit eda4ee0

Browse files
Merge pull request #4297 from IgorA100/patch-26
Chore: Slight performance improvements to "gridstack" initialization on Montage page
2 parents c205217 + 11dca40 commit eda4ee0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

web/skins/classic/views/js/montage.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -875,9 +875,9 @@ function watchFullscreen() {
875875

876876
function initGridStack(grid=null) {
877877
const opts = {
878-
margin: 0,
879-
cellHeight: '1px',
880-
//sizeToContent: true, // default to make them all fit
878+
margin: '0 1px 0 1px',
879+
cellHeight: '4px', //Required for correct use of objGridStack.resizeToContent
880+
sizeToContent: true, // default to make them all fit
881881
resizable: {handles: 'all'}, // do all sides
882882
float: false,
883883
disableDrag: true,

0 commit comments

Comments
 (0)