KMatle Expert Licensed User Longtime User Feb 27, 2017 #1 I've defined a label by code and set the height to -2 (= view changes it's height to fit the content). When I check the height later (to add another label under the first one) the height is still set to -2. How can I get the real height?
I've defined a label by code and set the height to -2 (= view changes it's height to fit the content). When I check the height later (to add another label under the first one) the height is still set to -2. How can I get the real height?
Erel B4X founder Staff member Licensed User Longtime User Feb 27, 2017 #2 Don't use -2. You can instead use StringUtils.MeasureMultilineTextHeight to calculate the required height. Note that it is already implemented in CustomListView. Upvote 0
Don't use -2. You can instead use StringUtils.MeasureMultilineTextHeight to calculate the required height. Note that it is already implemented in CustomListView.