Git Product home page Git Product logo

Comments (3)

pyscripter avatar pyscripter commented on May 25, 2024 1

Thanks!

But, shouldn't TBaseVirtualTree.AutoScale behave in a similar way?

from virtual-treeview.

joachimmarder avatar joachimmarder commented on May 25, 2024

Is there a reason for this behaviour?

Well, I guess the original idea was to let the developer decide about the header height, but prevent cut off text which never makes sense.

Furthermore, changing the font is not the same as dpi-scaling. In dpi-scaling you have M and D and so can keep the relations between header height and other elements of the control.

How about tying the header height to DefaultNodeHieght?

from virtual-treeview.

pyscripter avatar pyscripter commented on May 25, 2024

I guess the original idea was to let the developer decide about the header height,

In that case the developer should not set toAutoChangeScale. Especially now that it is decoupled from DPI scaling. Setting this flag means that you allow VT to optimize node and header height, based on the font size.

How about tying the header height to DefaultNodeHieght?

This would not work when the header ParentFont is False. And in any case DefaultNodeHeight is also incorrect when you decrease the font size. The suggested changes fix both DefaultNodeHeight and header height.

Just think what needs to be done otherwise, if a user assigns a font with smaller size at run time:

  • Change DefaultNodeSize manually
  • Change the height of existing nodes.
  • Change the header height manually

from virtual-treeview.

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.