This plugin was created for use in jQuery.selectorInspector interface. This example has not been simplified to showcase the plugin's ability, but you can still see it work by clicking and dragging the vertical/horizontal bars below.
To see how it works, view the source and search for "paneSizer".