maimonides Posted February 28, 2013 Share Posted February 28, 2013 <... some window> <label name="focus_window_label" export="1" align="expand" width="150" height="15"> <text rich="1"><center>focus me</center></text> </label> </window>Does not center the "focus me". If i add wrap="1" to the text properties, it starts to work as expected.. Link to comment
silent Posted March 1, 2013 Share Posted March 1, 2013 maimonides, Did you try to use align="center" text attribute? You should get something like this: <text rich="1" align="center">focus me</text> How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
vita_de Posted March 18, 2013 Share Posted March 18, 2013 I have given option does not work, there are other examples <label align="expand"> <text rich="1"><p align="right">Text1 to the right</p></text> <!-- does not work --> </label> <label align="expand"> <text rich="1"><center>Text2 center</center></text> <!-- does not work --> </label> <label align="expand"> <text rich="1" wrap="1"><p align="right">Text3 to the right</p></text> <!-- OK --> </label> <label align="expand"> <text rich="1" wrap="1"><center>Text4 center</center></text> <!-- OK --> </label> <label width="320"> <text rich="1" wrap="1" align="right">Text5 to the right</text> <!-- does not work --> </label> Link to comment
silent Posted March 18, 2013 Share Posted March 18, 2013 vita_de This issue will be fixed in the next version of SDK. Thanks! btw, the last example should not work, because <text> tag is containing no align attribute, sorry for misleading you in this case. How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
maimonides Posted March 19, 2013 Author Share Posted March 19, 2013 I have, thru workaround, made it work and forgot about. I will return to it in next release to do it properly. Thank you! Link to comment
Recommended Posts