diff --git a/Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp b/Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp index e28c48c4615d68dcdcce19f16fc4bf771aa74599..90c6b396e2c61d3d8d5062539f8658b33f9a28cd 100644 --- a/Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp +++ b/Source/Plugins/LfpDisplayNode/LfpDisplayCanvas.cpp @@ -1636,7 +1636,8 @@ void LfpDisplay::setChannelHeight(int r, bool resetSingle) } if (resetSingle && singleChan != -1) { - setSize(getWidth(),numChans*getChannelHeight()); + std::cout << "width " << getWidth() << " numchans " << numChans << " height " << getChannelHeight() << std::endl; + setSize(getWidth(),numChans*ch); viewport->setScrollBarsShown(true,false); viewport->setViewPosition(Point<int>(0,singleChan*r)); singleChan = -1;