| 5745 | } |
| 5746 | |
| 5747 | void UICodeEditor::onAutoSize() { |
| 5748 | if ( mHeightPolicy == SizePolicy::WrapContent ) { |
| 5749 | auto visibleLineCount = getDocumentView().getVisibleLinesCount(); |
| 5750 | Float lineHeight = getLineHeight(); |
| 5751 | Float height = lineHeight * visibleLineCount + getPixelsPadding().Top + |
| 5752 | getPixelsPadding().Bottom + getTotalTopSpace(); |
| 5753 | setPixelsSize( getPixelsSize().getWidth(), height ); |
| 5754 | } |
| 5755 | } |
| 5756 | |
| 5757 | void UICodeEditor::onClassChange() { |
| 5758 | for ( const auto& name : mClasses ) { |
nothing calls this directly
no test coverage detected