Bug #1650

TreeCtrl set does not update the scroll rect

Added by cbpporter cbpporter over 2 years ago. Updated over 2 years ago.

Status:NewStart date:02/24/2017
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:CtrlLibSpent time:-
Target version:-

Description

Calling Set(int id, Value k, Value v) (and potentially TreeCtrl::Set(int id, Value v); did not test) in such a way that the value of a key shrinks in its pixel size when rendered on the screen does not lead to an update of the TreeCtrl's scroll rectangle.

I found a solution but I'm not sure if it is correct, by adding a Dirty call:

void  TreeCtrl::Set(int id, Value k, Value v)
{
    Item& m = item[id];
    if(m.ctrl)
        m.ctrl->SetData(v);
    else {
        m.key = k;
        m.value = v;
        RefreshItem(id);
    }
        // fix????
    Dirty(id);
    SetOption(id);
}

History

#1 Updated by cbpporter cbpporter over 2 years ago

  • Assignee deleted (Miroslav Fidler)

Also available in: Atom PDF