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

Programattically setting splitPaneProperties.firstComponentSize does not update the splitPaneProperties.lastComponentSize (and vice versa)

Open superbazza opened this issue 7 years ago • 0 comments

I programmatically minimise one pane (set to zero), but the splitPaneProperties are only half-updated.

e.g. If I $watch('splitPaneProperties')

On page load:

{firstComponentSize: 420, lastComponentSize: 471}

Set 2nd pane to zero:

{firstComponentSize: 420, lastComponentSize: 0}

If I modify the logic of the splitpaneresize listener in angular-split-pane.js, I can get:

{firstComponentSize: 891, lastComponentSize: 0}

superbazza avatar Oct 02 '18 07:10 superbazza