[escher] EvenOddBufferTextCell wraps the text view with a 2-pixel margin

This commit is contained in:
Émilie Feral
2019-09-23 15:33:27 +02:00
committed by LeaNumworks
parent a3b3951eee
commit 6f70924893
7 changed files with 7 additions and 35 deletions

View File

@@ -39,5 +39,7 @@ View * EvenOddBufferTextCell::subviewAtIndex(int index) {
}
void EvenOddBufferTextCell::layoutSubviews() {
m_bufferTextView.setFrame(bounds());
KDRect boundsThis = bounds();
KDRect boundsBuffer = KDRect(boundsThis.left() + k_horizontalMargin, boundsThis.top(), boundsThis.width() - 2*k_horizontalMargin, boundsThis.height());
m_bufferTextView.setFrame(boundsBuffer);
}