mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-30 04:00:02 +02:00
[escher] EvenOddBufferTextCell wraps the text view with a 2-pixel margin
This commit is contained in:
committed by
LeaNumworks
parent
a3b3951eee
commit
6f70924893
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user