GithubHelp home page GithubHelp logo

[Bug]: Closing last Page in undocked page group prevents addition of further Pages via `KryptonDockingManager.AddToWorkspace` about standard-toolkit HOT 5 CLOSED

stigzler avatar stigzler commented on June 18, 2024
[Bug]: Closing last Page in undocked page group prevents addition of further Pages via `KryptonDockingManager.AddToWorkspace`

from standard-toolkit.

Comments (5)

stigzler avatar stigzler commented on June 18, 2024

OK. So I forked this and think I've isolated the issue (the fix, though is sadly beyond me). If I step through following trying to add a new Page to a workspace where the last tabbed Page has been closed, this line and beyond is of interest:

Master source link

A couple of interesting points:

  1. cell Visible = false
  2. var childMinSize = cell.GetMinSize(); returns Width = -2147483648 Height = -2147483611 (this value not returned when there's a Page in the Cell)

Further investigation into KryptonWorkspaceCell.GetMinSize() shows this gets the negative values from KryptonWorkspaceCell.GetMinSize(ControlCollection controls) where the default return is set to int.MinValue. controls is null therefore these int.min values are returned.

The height value is modified by the first GetMinSize method, thus the discrepancy with Height....

So, I've tired chaging a few things in KryptonDockingSpace.Append such as setting the Cell to visible and using some dummy positive values for childMinSize (removing the negatives) but no dice. I'm wondering whether the problem lies elsewhere as the above implies that the relevant KryptonWorkspaceCell doesn't contain any controls (which if it contained a Page, it should contain a control).

Anyways, burnt out on this issue now and given I don't know the wider architecture, it's hard to troubleshoot. Hope you guys can give this some attention (I appreciate you have a long list!) as it is a bit of a major issue (adding new pages to fully closed document groups).

from standard-toolkit.

stigzler avatar stigzler commented on June 18, 2024

I couldn't let it lie, so found a possible solution. See the pull request for details.

from standard-toolkit.

Wagnerp avatar Wagnerp commented on June 18, 2024

@stigzler & @Smurf-IV Is the fix a candidate for v85 as well?

from standard-toolkit.

Smurf-IV avatar Smurf-IV commented on June 18, 2024

@stigzler & @Smurf-IV Is the fix a candidate for v85 as well?

Did it "Work" in earlier versions of V80 or V70 ?? If so then yes. - Otherwise no.

from standard-toolkit.

Wagnerp avatar Wagnerp commented on June 18, 2024

@stigzler & @Smurf-IV Is the fix a candidate for v85 as well?

Did it "Work" in earlier versions of V80 or V70 ?? If so then yes. - Otherwise no.

Not in v80.

from standard-toolkit.

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.