Requires

Provides

Position.js

Easily reposition element by positioning widget absolutely and one of the edges

License:
Public domain (http://unlicense.org).
Authors:
Yaroslaff Fedin
  1. 22
  2. 23
  3. 24
  4. 25
  5. 26
  6. 27
  7. 28
  8. 29
  9. 30
  10. 31
  11. 32
  12. 33
  13. 34
  14. 35
  15. 36
  16. 37
  17. 38
LSD.Mixin.Position = new Class({ behaviour: "[at], [position]", initialize: function() { this.parent.apply(this, arguments); this.positionAt(this.attributes.at || this.attributes.position); }, positionAt: function(position) { position.split(/\s+/).each(function(property) { this.element.setStyle(property, 0) }, this); this.element.setStyle('position', 'absolute'); return true; } });