Jump to content


CDK

Member Since 15 Feb 2015
Offline Last Active Mar 07 2018 04:50 PM
-----

Posts I've Made

In Topic: 2 small bugs (leak and vert scrollbar)

11 October 2015 - 12:51 PM

Hi Berg!

 

I tried to understand what the problem is with the vertical scroolbar and noticed that TNxCustomInspector.GetVisibleCount always returns too big value.

I also noticed that in most other parts of the code you use this verification:

if not FItems.Node[i].Hidden and FItems.Node[i].Visible

but in the GetVisibleCount only the first part of it.

 

Changes from

    if not FItems.Node[i].Hidden and

to

    if not FItems.Node[i].Hidden and FItems.Node[i].Visible and

fixes my problem.