split-pane icon indicating copy to clipboard operation
split-pane copied to clipboard

Add support for component max-width and max-height

Open shagstrom opened this issue 11 years ago • 1 comments

shagstrom avatar Apr 03 '13 12:04 shagstrom

@shagstrom i'm currently using this:

function maxHeight(element) {
  return parseInt($(element).css('max-height')) || 0;
}
//and call it on line 182
maxLastComponentHeight = maxHeight(lastComponent) || splitPane.offsetHeight - minHeight(firstComponent) - divider.offsetHeight,
//and line 188 to use it
//height fix to fill all space before
$(firstComponent).height('auto');

and thanks for v0.5.2 :+1:

arturparkhisenko avatar Nov 23 '15 07:11 arturparkhisenko