Fix a mistake in SKnobCCBox implementation

This commit is contained in:
Jean Pierre Cimalando 2021-02-28 10:24:35 +01:00
parent 119bd7a222
commit b71d56fc2e

View file

@ -636,11 +636,11 @@ void SKnobCCBox::updateViewSizes()
const CRect size = getViewSize();
const CCoord ypad = 4.0;
const CFontRef nameFont = ccLabel_->getFont();
const CFontRef nameFont = label_->getFont();
const CFontRef ccFont = ccLabel_->getFont();
nameLabelSize_ = CRect(0.0, 0.0, size.getWidth(), nameFont->getSize() + 2 * ypad);
ccLabelSize_ = CRect(0.0, size.bottom - ccFont->getSize() - 2 * ypad, size.getWidth(), size.bottom);
ccLabelSize_ = CRect(0.0, size.getHeight() - ccFont->getSize() - 2 * ypad, size.getWidth(), size.getHeight());
knobSize_ = CRect(0.0, nameLabelSize_.bottom, size.getWidth(), ccLabelSize_.top);
// remove knob side areas