Skip to content

Instantly share code, notes, and snippets.

@mudgen
Created July 29, 2013 20:31
Show Gist options
  • Select an option

  • Save mudgen/6107553 to your computer and use it in GitHub Desktop.

Select an option

Save mudgen/6107553 to your computer and use it in GitHub Desktop.
Get 0 width of anchored layout component Get x of anchored layout component Get actual width of anchored layout component
container = event.source.parent
componentZeroWidth = -(container.width - container.designerWidth)
componentX = component.x - (container.width - container.designerWidth)
componentWidth = component.width - (container.width - container.designerWidth)
componentHeight = component.height - (container.height - container.designerHeight)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment