Changeset 838 for cpp/frams


Ignore:
Timestamp:
12/06/18 02:51:16 (6 years ago)
Author:
Maciej Komosinski
Message:

Bigger neuro-probe windows (depending on the container size)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/canvas/neurodiagram.cpp

    r718 r838  
    230230        if (i >= countNeurons()) return;
    231231        NeuroProbe *probe = new NeuroProbe(getNS(i));
     232        Pixel s=getSize();
     233        s.x=s.y=max(probe->getSize().x,min(s.x/3,s.y/3));
    232234        probes += (void*)probe;
    233235        add(probe);
     236        probe->resizeClient(s);
    234237        updatePlugin();
    235238        requestPaint();
Note: See TracChangeset for help on using the changeset viewer.