Uh oh!
There was an error while loading. Please reload this page.
Persistent State - #164
Conversation
…r_components This helps in case the repository is cloned inside a larger project that has a different bower setup (e.g. for angular when the bower_components is inside the app folder)
…ons are stored in local storage
This is achieved by adding an optional attribute layout-id in the markup to uniquely identify a ui-layout. The children are identified by their indices which are now correctly updated whenever they change.
widmoser
commented
Dec 4, 2015
Note that I intentionally omitted saving the collapsed state, because I need to read the code in more detail to understand it fully. Maybe the collapsing implementation can be simplified, before extending this feature to include it. |
petrsimon
commented
Dec 4, 2015
I'm very interested in this, but there's so much formatting changes... you think you could clean that up a bit and push only the implementation details? Cheers ;) |
SomeKittens
commented
Dec 5, 2015
additionally, you've added a |
widmoser
commented
Dec 9, 2015
Ok I will try to clean everything up. |
widmoser
commented
Dec 9, 2015
I cleaned up the diff. I would really appreciate though, if we could agree on a consistent formatting style (space before |
widmoser
commented
Jan 5, 2016
Did you have a chance to check it @SomeKittens, @petrsimon? Should we merge it? |
petrsimon
commented
Jan 6, 2016
I'm really sorry guys, I've been completely swamped lately. I will start working on ui-layout again in a month or so. But I will try to find time and look at this sooner unless it's dealt with even sooner :) |
There was a problem hiding this comment.
Open an issue for this instead of // TODO
SomeKittens
commented
Jan 6, 2016
Did another review pass, had a few questions. |
widmoser
commented
Jan 21, 2016
Thanks for the review @SomeKittens. Sorry for the delay, I've just seen the comments. I will have a look at it as soon as I have some time. |
SomeKittens
commented
Jan 29, 2016
Let me know when this has been cleaned up |
widmoser
commented
Feb 19, 2016
@SomeKittens: I have included your suggestions |
This pull requests adds the functionality of storing current container sizes in the local storage.
Fixes#13.
I've added some tests. I can add more if needed. Also I can update the README to reflect the changes if desired.
The basic idea is to assign a unique reconstructable id to every layout container and save the size as
uncollapsedSizewhenever a split bar is moved.