Code Monkey home page Code Monkey logo

Comments (6)

roken avatar roken commented on May 14, 2024

Fix for "select correct tab after you close one" cannot be accepted in its current state. It assumes that each tab is killed when it is closed, however you can have tabs that simply hide themselves on close rather than destroy themselves on close. This leads to funny behavior, most notably that a tab that was previously hidden will reappear when the last visible tab is closed.

from dockpanelsuite.

jcbarton avatar jcbarton commented on May 14, 2024

Submitted a revised change.

New class, DockContentCollection.ContentSelector() does the work - and handles the case where content is hidden.

Uses this whenever the visible state of content is changed, so if you programmatically call "IsHidden" on content, it will work.

Tested all the cases I could think of - let me know if you have any further issues.

from dockpanelsuite.

jcbarton avatar jcbarton commented on May 14, 2024

I was too quick uploading that. It didn't work with our improved middle click - where you can middle click to close a tab that isn't selected - and it doesn't change the selection.

I'll upload a new set of changes for this soon.

from dockpanelsuite.

jcbarton avatar jcbarton commented on May 14, 2024

OK, so new set of changes up for selecting the correct tab when you close content. Copes with HideOnClose being true, and copes with the case where you are closing content that isn't selected. Next to upload will be our revised middle-click close fix, that doesn't select the tab before closing it.

from dockpanelsuite.

roken avatar roken commented on May 14, 2024

Sorry this has been hanging out here for a while. I'm concerned this might be a bandaid for a deeper issue but haven't had the opportunity to fully form that opinion yet.

from dockpanelsuite.

jcbarton avatar jcbarton commented on May 14, 2024

Not a problem. I was a little concerned after realising we hadn't coped with documents that were hidden rather than closed - and had to rethink what we had to cope with.

If its of any use, that change has been in our code now for a while and has been released, and hasn't caused any problems.

I promise I'll get around to adding our better fix for middle-click close soon.

from dockpanelsuite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.