| 31 | } |
| 32 | |
| 33 | Size LabelCore::sizeForSpace(Size availableSpace) const |
| 34 | { |
| 35 | if (wrap) { |
| 36 | _jLabel.setMaxWidth((int)(availableSpace.width * getUIScaleFactor())); |
| 37 | } |
| 38 | |
| 39 | Size result = ViewCore::sizeForSpace(availableSpace); |
| 40 | |
| 41 | if (wrap) { |
| 42 | _jLabel.setMaxWidth((int)(geometry->width * getUIScaleFactor())); |
| 43 | } |
| 44 | |
| 45 | return result; |
| 46 | } |
| 47 | |
| 48 | void LabelCore::textChanged(const Text &text) |
| 49 | { |
nothing calls this directly
no outgoing calls
no test coverage detected