splitter icon indicating copy to clipboard operation
splitter copied to clipboard

Initial Splitting

Open HHHChrist opened this issue 5 years ago • 0 comments

I added an own attribute to the .vertically_divided/.horizontally_divided divs: InitialSplitterSplittingPercent="{Width in Percent}" e.g.: InitialSplitterSplittingPercent="20" for a splitting of 20%.

inside the "init : function(){" I changed

elem.percent = 50;

by

        if (elem.hasAttribute('InitialSplitterSplittingPercent'))
            elem.percent = elem.getAttribute('InitialSplitterSplittingPercent');
        else
            elem.percent = 50;

Now it splits initially by the assigned percent.

HHHChrist avatar Apr 30 '21 19:04 HHHChrist