quirk in group resize behavior

Colin Holgate colinholgate at gmail.com
Mon Jun 20 20:00:45 EDT 2016


Perhaps it could use the same terminology, and work the same way, as full screen modes. The current behavior is effectively noScale, and with exactFit, noBorder, showAll, and letterbox, you could move the contents in the expected way. Could even use the arithmetic from the full screen mode code.

Of course, that does assume you’re able to scale controls.

> On Jun 20, 2016, at 7:17 PM, Monte Goulding <monte at appisle.net> wrote:
> 
> Hi Folks
> 
> One of the recent issues in the IDE caused us to discover/rediscover a quirk in group resize behavior that I think would be worthwhile getting feedback on from the community. I’m personally struggling to come up with a use case for it although there very likely is/was one. Perhaps one of the newer group properties resolved the use case in a better way.
> 
> When you resize a group using the selection handles the controls inside stay where they are. This is quite helpful. The code that does that also has an extra condition which means the controls inside the group will also stay where they are if resizing an unselected group via code but not changing the bottomRight of the rect. This essentially makes the group appear scrolled even though the scroll property is unchanged. At the very least this behavior needs to be documented, however, I can’t help feeling that it is unexpected behavior and a reliable rule of changing the topLeft of a group shifting its controls that amount would be more helpful.
> 
> An example of this issue can be seen in the script editor in the IDE where when you use the resizer to alter the width of the handler list the interactive find is not moving correctly. This is because the amount being added/subtracted to the topLeft of the group is the exact same amount being subtracted/added to the bottomRight.
> 
> The code making it do this is unchanged since LiveCode went open source. I expect it has been this way for a very long time and I have a feeling that I know why at one point… If it is something that people depend on than it may be we can only document as an anomaly or would need to add an extra group property to override it.
> 
> Any thoughts from the community would be appreciated.
> 
> Cheers
> 
> Monte
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list