GithubHelp home page GithubHelp logo

Comments (4)

akhenry avatar akhenry commented on June 14, 2024

Have done some initial investigation. Notes below.

  1. The refresh is happening because the drag gesture updates the configuration of the layout object being edited.
  2. This change is then persisted (via the EditablePersistenceCapability - which just marks the editable object cache dirty).
  3. This has the effect of updating the 'modified' value on the domain object model
  4. This triggers a watch in MCTRepresentation which updates the objects capabilities
  5. One of those capabilities is the view capability, so $scope['view'] gets set to a list of the views for this object. it seems to be this step that triggers the redraw of all children Don't know enough about what the implication of setting that property of scope is to speculate about why that is yet.
  6. One of those capabilities is the composition capability. The layout view uses $scope['composition'] to iterate child objects. This field is refreshed every time anything on the model changes (including configuration). Because the composition capability returns an array of new objects every time, it causes a refresh of all children every time the capability is refreshed.

from openmct.

akhenry avatar akhenry commented on June 14, 2024

Fixed in PR #345

from openmct.

RCarvalhoNASA avatar RCarvalhoNASA commented on June 14, 2024

Testathon 20151207 This behaves much better now, really nice! However, this error still happens when adding a panel to the layout by dragging it in from the tree on the right.

from openmct.

charlesh88 avatar charlesh88 commented on June 14, 2024

Testathon 20151207: Same experience as Robert.

from openmct.

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.