Problem scrolling a group of objects that may be moved
Posted: Thu Jun 14, 2018 9:27 am
The lesson : http://lessons.livecode.com/m/4071/l/11 ... the-window describes how a group may be made to scroll to display contents that are located outside the location of the group. I have used the principles described in the lesson to create a stack to display a number of thumbnail images.
My stack will process a folder of images and display a thumbnail of each image inside a group on the card. The group of images is resized when the card is resized and images may be dragged and dropped within the group. When the card is enlarged to fill the height of the screen it is possible to drag an image to the bottom of the group and even partly off the group. If the card is reduced in size I expected that the vertical scroll bar would appear as soon as an image is partially obscured but it does not appear at that point. It does get shown at some point as the size of the group is reduce which is not related to the locations of the images.
It is difficult to confirm what triggers the display of the scroll bar but it could be the size of the group when the stack was last saved and loaded ( a save in the IDE does not modify the reveal point).
Is the above expected or is it a bug?
I have attached my stack if you care to have a look. To use first put five jpegs in a folder then run the stack and press the button "action". The images will be displayed all over the card and not just within the group. Next resize the card making it larger and drag the images so that all are in view. Drag at least one down to the bottom of the card and then reduce the size of the card. On my computer the scroll bar does not appear as the image is hidden.
My stack will process a folder of images and display a thumbnail of each image inside a group on the card. The group of images is resized when the card is resized and images may be dragged and dropped within the group. When the card is enlarged to fill the height of the screen it is possible to drag an image to the bottom of the group and even partly off the group. If the card is reduced in size I expected that the vertical scroll bar would appear as soon as an image is partially obscured but it does not appear at that point. It does get shown at some point as the size of the group is reduce which is not related to the locations of the images.
It is difficult to confirm what triggers the display of the scroll bar but it could be the size of the group when the stack was last saved and loaded ( a save in the IDE does not modify the reveal point).
Is the above expected or is it a bug?
I have attached my stack if you care to have a look. To use first put five jpegs in a folder then run the stack and press the button "action". The images will be displayed all over the card and not just within the group. Next resize the card making it larger and drag the images so that all are in view. Drag at least one down to the bottom of the card and then reduce the size of the card. On my computer the scroll bar does not appear as the image is hidden.