Skip to content
Daniel Gimenez edited this page Jul 26, 2013 · 4 revisions

dGBlocks is a simple plugin for positioning and sizing blocks.

Members

Properties

  • pollingInterval: Determines how often objects using fillHeight will check if their parent container has been resized.

Methods

  • fillHeight: Selected elements with fill any remaining height of the parent. If the window or parent is resized, the selected elements will shrink/grow with the new available space.
  • moveRightOf: Accepts as an argument an html element, and an optional x-offset. Will position selected elements to the right of the passed elements, with any additional offset. Only works with blocks that have position:absolute style.
  • moveUnder: Accepts as an argument an html element, and an optional y-offset. Will position selected elements directly under the passed elements, plus with any additional offset. Only works with blocks that have position:absolute style.

Clone this wiki locally