When dynamically creating a series of labels, the text in the label is cut off - as if it is being generated lower than it should. Here is an image showing the issue.
If I place the same container at design time, the label is fine. I am not manipulating the height or potion of the label in the code, as it is determined by the container it resides in.
Here’s a snippet of the only place I reference that label in code. It is when I dynamically create the control object and embed it on the page:
You could roll your own label control with the WebSDK. You’d need to be good with HTML, CSS, and JavaScript or know where to look so you could pretend to be good at them for a few days :-).
Unless I am mistaken, the font chosen for the label is in fact selected by the browser. And nothing guarantees it will be the same as the one you selected at design time. Hence possible mishaps. I would tend to use multiline labels as a workaround.
Well, It’s been some time since this post but I believe I’ve found a better workaround and want to share…
At least on xojo 2014r2 just make sure that any embedwithin is called after the shown event. I’ve set a standard “EmbedControls” method which is called from the shown event. This makes the style be applied correctly on the labels inside a container.