Rolling Up and Down

This commit is contained in:
Luis Fernando Molina committed 2020-01-15 23:12:23 +01:00
1 parent bf38073280
commit d4185f1235
2 files changed
+15 -4

No files matched your search

+14 -3
View File
@@ -122,8 +122,14 @@ function newProductsPanel () {
delta = 1
}
firstVisibleLayer = firstVisibleLayer + delta
if (event.y - thisObject.container.frame.position.y - CURRENT_TOP_MARGIN < heatherHeight) {
desiredVisibleLayers = desiredVisibleLayers + delta
if (desiredVisibleLayers < 0) { desiredVisibleLayers = 0 }
if (desiredVisibleLayers > thisObject.layers.length) { desiredVisibleLayers = thisObject.layers.length }
} else {
firstVisibleLayer = firstVisibleLayer + delta
}
desiredPanelHeight = (layerHeight + LAYER_SEPARATION) * desiredVisibleLayers + heatherHeight + footerHeight
calculateVisbleLayers()
}
@@ -136,7 +142,12 @@ function newProductsPanel () {
}
if (thisObject.layers.length < posibleVisibleLayers) { posibleVisibleLayers = thisObject.layers.length }
posiblePanelHeight = (layerHeight + LAYER_SEPARATION) * posibleVisibleLayers + heatherHeight + footerHeight
if (posibleVisibleLayers === 0) {
posiblePanelHeight = (layerHeight + LAYER_SEPARATION) * posibleVisibleLayers + heatherHeight
} else {
posiblePanelHeight = (layerHeight + LAYER_SEPARATION) * posibleVisibleLayers + heatherHeight + footerHeight
}
thisObject.container.frame.height = posiblePanelHeight
}
+1 -1
View File
@@ -37,7 +37,7 @@ function drawScaleDisplayCover (container) {
borderColor: UI_COLOR.WHITE,
castShadow: false,
backgroundColor: UI_COLOR.WHITE,
opacity: '0.75'
opacity: '0.50'
}
roundedCornersBackground(params)