TomaszFurca Posted November 9, 2018 Share Posted November 9, 2018 Hi, I have a problem with position of my tooltip. Width of it is resized to text length. I want to render my tooltip in texture, so global position is excepted. I want to put my tooltip always on top of pointer enter object and centered horizontal. Also i found a problem with render a artifact before show text in tooltip. PG https://www.babylonjs-playground.com/#GL5SIM#8 Quote Link to comment Share on other sites More sharing options...
Guest Posted November 10, 2018 Share Posted November 10, 2018 Hey Tomasz! for the artifact, this is a bug that will be fixed by next commit For the other question, I'm not sure to understand it. Can you elaborate a bit more? Quote Link to comment Share on other sites More sharing options...
TomaszFurca Posted November 10, 2018 Author Share Posted November 10, 2018 Thanks for fix issue. So in my playground i have two buttons. For every button tooltip width is different. I want to achieve center horizontal position of my tooltip based on triggered button. Quote Link to comment Share on other sites More sharing options...
Guest Posted November 11, 2018 Share Posted November 11, 2018 I think something like that could work: - create a container for the button and the tooltip. - set the tooltip as horizontal center - make sure the container is set with clipChildren = false Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.