MCPcopy Create free account
hub / github.com/AshampooSystems/boden / sizeForSpace

Method sizeForSpace

framework/ui/platforms/android/src/LabelCore.cpp:33–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected