Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
How can I properly dock a panel to the bottom of the users screen when I am in a 2D view?
1.jpg - shows the effect I want to achieve. This was done by setting the class with the below CSS but this did not work in practice.
.UI-Bottom{
position: fixed;
bottom: 0px;
width: 100%;}
2.jpg - shows what the preview of 1.jpg looks like. The CSS does not hold the panel to the bottom
3.jpg - shows the panel with no CSS applied
Hello,
To manage that I am using the Grid Widget.
Best regards,
Samuel
Yes the view is purely 2D, so no 3D canvas.
I have a Top, Center, and Bottom Panel all with grid layouts in them. The issue is all the panels just stack on one another and I cannot position them where I would like.
Hello,
The best to troubleshoot that is to remove at first, all CSS styles applied and to check what appends.
Best regards,
Samuel
Yes, please refer to original post and the 3rd picture where I did not apply any CSS.
Hello,
I suppose that the .UI-Bottom Style is applied only in the Bottom Panel Widget.
But It seem you are using other css stylesheet in screenshots.
So, to troubleshot correctly, start a new Project, in 2D canvas only Panels.
Apply only the .UI-Bottom Style Bottom Panel Widget.
To see the panels, I would recommand to display a background like that :
.coral_color{ background-color: coral; }
Please find the Project where I used this solution.
By the way, no CSS style with position or size is specified in this example.
By default the Panels and Grids are limited by the size of the screen of the mobile.
It is not like in a web browser where a scroll bar is displayed if the HTML page doesn't fit the screen.
So, in .UI-Bottom CSS Stylesheet I suppose that .
At the end, from my point of view only size of the bottom Panel is needed.
I mean is it a fixed height or in more flexible height.
Best regards,
Samuel
Thank you for that example but that view is still an AR view and not only 2D. I currently have a project that is a mix of AR and 2D views.
I have no problem having the bottom panel stay on the bottom within an AR view but cannot in a 2D View. The CSS applied in 3.jpg was only on the buttons so even with all the CSS stripped the bottom panel stays in the same location. I sadly just noticed the 'Footer' container instead of using a Panel but that does not seem to like gridlayouts too much
Hello,
I have updated the example Project with a 2D View.
Please find attached to the post.
To have the result expected, I have followed these steps :
Best regards,
Samuel