mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-24 00:00:44 +01:00
[escher] TableCell: the subviews are layoutted horizontally or
vertically. We add an option to decide which subviews should overlap on top of the other if there is not enough space
This commit is contained in:
@@ -52,11 +52,11 @@ void MessageTableCellWithEditableText::layoutSubviews(bool force) {
|
||||
KDSize labelSize = labelView()->minimalSizeForOptimalDisplay();
|
||||
/* Handle textfield that has no defined width (as their width evolves with
|
||||
* the length of edited text */
|
||||
textFieldSize = KDSize(bounds().width() - 2*k_separatorThickness - labelSize.width()-2*labelMargin()-k_accessoryMargin, textFieldSize.height());
|
||||
textFieldSize = KDSize(bounds().width() - 2*k_separatorThickness - labelSize.width()-2*labelMargin()-k_horizontalMargin, textFieldSize.height());
|
||||
m_textField.setFrame(KDRect(
|
||||
bounds().width() - textFieldSize.width() - k_separatorThickness-k_accessoryMargin,
|
||||
(bounds().height()-textFieldSize.height()-k_accessoryMargin)/2,
|
||||
bounds().width() - textFieldSize.width() - k_separatorThickness-k_horizontalMargin,
|
||||
(bounds().height()-textFieldSize.height()-k_horizontalMargin)/2,
|
||||
textFieldSize.width(),
|
||||
textFieldSize.height()+k_accessoryMargin),
|
||||
textFieldSize.height()+k_horizontalMargin),
|
||||
force);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user